In order to compile and run code from Visual Studio, it must be done from within a project.
Creating and building your first C++ project in Visual Studio
Get Unreal Engine 4.x Scripting with C++ Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.