记得最初学C++ 用的是Visual Studio 6.0, 在那个大机房里,老师在讲台上吆喝着说“大家选择win32 console project”,当时也没管多少。
现在转眼间到VS2013了,本文记一下创建C++ Project的小不同。
用Console,里面自带"stdafx.h" is some header file with important stuff in it pertaining to Visual Studio only.
main函数成了
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
("_tmain( )" is an extension of Microsoft's C++ compiler and therefore, is non-standard.)
return int 0是跟linux 下c的规范一样的,说明了这是console application。我试了个例子:#include "stdafx.h"
#include "iostream"
using na