在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; }@H_404_3@我有几个问题:
>为什么main函数_tmain而不是main?
>我以为argv参数应该是char * argv []而不是_TCHAR.
>什么是stdafx.h?这真的不像我习惯的一样.
解决方法
看看这里_tmain …等
@L_403_0@
stdafx.h是Windows应用程序的预编译头(可选).更多在这里: