在 Visual C++ 2008 Express 中,当我创建一个新的控制台项目时,我会从以下程序开始:
//Explodey.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
int _tmain(int argc,_TCHAR* argv[])
{
return 0;
}
我有几个问题:
为什么main函数是_tmain而不是main?
我认为
argv
参数应该是char* argv[]
而不是_TCHAR
.是什么
stdafx.h
?
这真的不像我习惯的 C++。