简体   繁体   中英

Visual Studio 2012 C++ Empty Project error?

I keep attempting to make a new C++ Empty Project Console App but when I make the project the VS (2012) screen literally is empty. No place to write my code, how do I fix?

在此处输入图片说明

That is what a empty project is. If you want a file (place to write code) you have to right click on a folder and add a source file. I suggest calling it main.cpp. You must also have a main function inside of it.

int main()
{
    return 1;
}

As a beginner I dont suggest you start empty projects.

You probably want to create a console application. That will give you a place to write your code.

Don't create an empty project. Create "Win32 Console Application". It will create main file method into which you can insert your code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM