我要回覆:
主題:
暱稱:
內容:
----Penut花生 said---- >如果以去年的一定中樂透來講: > >/***/ >#include <iostream> >#include <fstream> >using namespace std; >int main() >{ > int a,b; > ifstream fin("pc.in"); > ofstream fout("pc.out"); > fin >> a >> b; > while(a!=0 && b!=0) > { > if(a%2==b%2) cout << "Win" << endl; > else cout << "Loss" << endl; > fin >> a >> b; > } >} >/***/ > >我的重點是 開關檔方式一樣如上嗎? >還是用while(cin >> a >> b)之類的其他方式? ----end of Penut花生 said----