最新回答 / n1n1n1
#include <iostream>#include <stdlib.h>using namespace std;? ? namespace ? ? myNum ? ? ? ? ? ?//填寫命名空間的關鍵字{? ? int x = 105;}using namespace myNum;int main(){? ? // 使用bool類型定義isOdd,作為狀態位? ? ? ? bool ? ?isFlag = false; ? ? ?? if(myNum::x % 2 == ...
2017-03-25
最新回答 / 慕移動9181930
個人認為,這個$redHTML只是一個字符串,其實無需要使用$前綴,可能最初的原因是讓大家習慣jquery這個環境罷了。歡迎常來慕課學習!小伙伴在等著你!
2017-03-24
#include <iostream>
using namespace std;
int main()
{
int x;
bool Isjishu=false;
cin>>x;
if(x%2==0)
{
Isjishu=1;
}
else
Isjishu=0;
if(Isjishu)
cout<<"偶數"<<endl;
else
cout<<"奇數"<<endl;
return 0;
}
using namespace std;
int main()
{
int x;
bool Isjishu=false;
cin>>x;
if(x%2==0)
{
Isjishu=1;
}
else
Isjishu=0;
if(Isjishu)
cout<<"偶數"<<endl;
else
cout<<"奇數"<<endl;
return 0;
}
2017-03-23