This is a simple description for beginners of how to create a console application in Visual Studio 2017.
Have a look at:
- Walkthrough: Creating Windows Desktop Applications (C++)
- Desktop Applications (Visual C++) | Microsoft Docs
However I think the second one, the "Microsoft Docs" article has not been revised for Visual Studio 2017 so it might be a little confusing.
I suggest generationg a project that has a complete sample program and for some reason those Microsoft pages don't say how to do it. Try the following.
-
On the File menu, click New and then click Project.
-
In the New Project dialog box, in the left pane, click Installed, click Visual C++, and then select Windows Desktop. In the middle pane, select Windows Desktop Wizard.
In the Name box, type a name for the project or keep the default. Click OK.
-
In the Windows DesktopProject window change the Application type to Windows Appliation (.exe) and keep all the otehr defaults. Click Ok.
- Build the project by clicking the Build menu then the Build Solution menu item. Then execute it using Ctrl-F5.
That describes how to create the project. You can modify the generated sample code.