Reputation: 30127
By default Microsoft's Visual Studio is using <tchar.h>
and defines main
as int _tmain(int argc, _TCHAR* argv[])
. This can be usefull but not always.
How to disable this in default new project?
UPDATE
I want to create empty projects with simple main
s...
Upvotes: 2
Views: 899
Reputation: 47992
To create an empty project and use plain old main
:
main
.For example:
#include <iomanip>
#include <iostream>
int main(int cArgs, char **ppszArgs) {
std::cout << "Hello, World!" << std::endl;
return 0;
}
Upvotes: 3