默认情况下,Microsoft的Visual Studio使用<tchar.h>
并将main
定义为int _tmain(int argc, _TCHAR* argv[])
。这可能很有用,但并非总是如此。
如何在默认的新项目中禁用它?
更新
我想用简单的main
s ...
答案 0 :(得分:3)
创建一个空项目并使用普通旧main
:
main
。例如:
#include <iomanip>
#include <iostream>
int main(int cArgs, char **ppszArgs) {
std::cout << "Hello, World!" << std::endl;
return 0;
}
答案 1 :(得分:2)
以下是MSDN的howto指南。