VC中的StdAfx头文件 // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #if !defined(AFX_STDAFX_H__58C73787_1231_40B3_A8BC_2F7670ABA3D7__INCLUDED_)
用C++写程序,肯定要用预编译头文件,就是那个stdafx.h.不过我一直以为只要在.cpp文件中包含stdafx.h 就使用了预编译头文件,其实不对。在VC++中,预编译头文件是指放到stdafx.h中的头文件才会有效果。如下: file: stdafx.h 代码如下:// stdafx.h : include file for standard system include files,// or project specific include files that are used fr