#if defined(_WIN64) || defined (WIN32) || defined (_WIN32)
cout << "Windows" << endl;
#else
cout << "Linux" << endl;
#endif
C/C++程序在windows和Linux多平台运行
最新推荐文章于 2023-05-02 20:04:24 发布
#if defined(_WIN64) || defined (WIN32) || defined (_WIN32)
cout << "Windows" << endl;
#else
cout << "Linux" << endl;
#endif