int main()
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{
isFlag = false;
}
else
{
isFlag = true;
}
if(isFlag == true)
{
cout << myNum::x << "是奇数" << endl;
}
else
{
cout << myNum::x << "是偶数" << endl;
}
system("pause");
return 0;
}
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{
isFlag = false;
}
else
{
isFlag = true;
}
if(isFlag == true)
{
cout << myNum::x << "是奇数" << endl;
}
else
{
cout << myNum::x << "是偶数" << endl;
}
system("pause");
return 0;
}
int main()
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{
isFlag = false;
}
else
{
isFlag = true;
}
if(isFlag == true)
{
cout << x << "是奇数" << endl;
}
else
{
cout << x << "是偶数" << endl;
}
return 0;
}
{
bool isFlag = false;
if(myNum::x % 2 == 0)
{
isFlag = false;
}
else
{
isFlag = true;
}
if(isFlag == true)
{
cout << x << "是奇数" << endl;
}
else
{
cout << x << "是偶数" << endl;
}
return 0;
}