#include "stdafx.h"
#include <iostream>
#include <stdlib.h>
using namespace std
namespace myNum{int x = 150;}
int main(){
bool isFlag = false;
if (myNum::x % 2 == 0){
isFlag = false;}
else{isFlag = true;}
if (myNum::x % 2 == 1){
cout << "X 是 奇数" << endl;}
else{
cout << "x 是偶数" << endl;}
return 0;}
#include <iostream>
#include <stdlib.h>
using namespace std
namespace myNum{int x = 150;}
int main(){
bool isFlag = false;
if (myNum::x % 2 == 0){
isFlag = false;}
else{isFlag = true;}
if (myNum::x % 2 == 1){
cout << "X 是 奇数" << endl;}
else{
cout << "x 是偶数" << endl;}
return 0;}