#include "stdafx.h"
#include "iostream"
#include "conio.h"
using namespace std;
#define XX 20
#ifndef XX
#define XX 12
#endif
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"XX="<<XX<<endl;// 输出20 作用防止重复定义,提高编译效率(去掉定义的 #define XX 20,则输出XX=12)
getch() ;
return 0;
}
#include "iostream"
#include "conio.h"
using namespace std;
#define XX 20
#ifndef XX
#define XX 12
#endif
int _tmain(int argc, _TCHAR* argv[])
{
cout<<"XX="<<XX<<endl;// 输出20 作用防止重复定义,提高编译效率(去掉定义的 #define XX 20,则输出XX=12)
getch() ;
return 0;
}