To create an empty project and use plain old main
:
- In Visual Studio, choose File -> New -> Project...
- Select Console Application and give it a name.
- In the Wizard, choose Application Settings.
- Select Empty project.
- Click Finish.
- Add a .cpp file to the project.
- In the new .cpp file, implement
main
.
For example:
#include <iomanip>
#include <iostream>
int main(int cArgs, char **ppszArgs) {
std::cout << "Hello, World!" << std::endl;
return 0;
}