#include <iostream>#include <stdlib.h>using namespace std;namespace myNum { int x = 105 ;}int main(){ bool isOdd; int isFlag = false; if(myNum::x % 2 == 0) {isOdd=false; } else { isOdd=true; } if(true) { cout<<"变量X是奇数"<<endl; } else { cout<<"变量X是偶数"<<endl; } system("pause"); return 0; }
添加回答
举报
0/150
提交
取消