#6454: 我這樣寫,問題出在哪裡


yanfw2727 (yanfw)


#include <iostream>
using namespace std;
int main () {
int M,D,S=(M*2+D)%3;
while(cin>> M >> D)
{
if (S==0)
{
cout << "普通";
}
else if(S==1)
{
cout << "吉";
}
else 
{
cout << "大吉";
}
}
return 0;
}
 
用Visual C++2008編譯的,每一次寫就會出現要繼續或者中斷的字樣