• #include 
    using namespace std;
    #define OUTPUTLOG //在调试程序时使之成为注释行
    int main()
    {
    int x = 1, y = 2, z = 3;
    #ifndef OUTPUTLOG //本行为条件编译命令
    cout << "x=" << x << ", y=" << y << ", z=" << z << "\n"; //在调试程序时需要输出这些信息
    #else
    cout << "no" << endl;
    #endif //本行为条件编译命令
    cout << "x*y*z=" << x * y * z << endl;
    #if (x * y * z==6)
    cout << "!0" << endl;
    #elif (x * y * z==0)
    cout << "ok" << endl;
    #endif
    }

  • 就几件    2019-11-11 11:48:48
  • 阅读 760    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信