/* 版权所有: http://blog.csdn.net/sunboyiris */
#ifdef _DEBUG
inline void msg(){ cout<<"debug 编译"<<endl; }
#else
inline void msg() {cout<<"release 编译 "<<endl;}
#endif
int main()
{
//debug 版本编译
#ifdef _DEBUG
cout<<"begining execution of main/n"<<endl;;
msg();
system("pause");
return 0;
//release 版本编译
#endif
string word="hello world!";
cout<<word<<endl;
msg();
system("pause");
return 0;
}
C++编程->条件编译
最新推荐文章于 2023-09-17 23:40:26 发布