#if defined (WIN32)||defined (_WIN32)|| defined(WIN64)||defined(_WIN64)&& !defined(__CYGWIN__)
//Windows代码
cout<<"this is Windows!"<<endl;
#else
//Linux代码
cout<<"this is Linux!"<<endl;
#endif
c++程序在Windows和Liunx中运行不同代码
最新推荐文章于 2022-05-11 22:00:00 发布