/*#include <iostream>
using namespace std;
int main()
{
string n;
int i=1;
while(cin>>n)
{
if (n=="HELLO")cout<<"Case "<<i<<": ENGLISH"<<endl;
else if (n=="HOLA")cout<<"Case "<<i<<": SPANISH"<<endl;
else if (n=="HALLO")cout<<"Case "<<i<<": GERMAN"<<endl;
else if (n=="BONJOUR")cout<<"Case "<<i<<": FRENCH"<<endl;
else if (n=="CIAO")cout<<"Case "<<i<<": ITALIAN"<<endl;
else if (n=="ZDRAVSTVUJTE")cout<<"Case "<<i<<": RUSSIAN"<<endl;
else cout<<"Case "<<i<<": UNKNOWN"<<endl;
i++;
}
}
它顯示:(請勿輸出題目未要求的文字:
Case 304: UNKNOWN)
/*#include
using namespace std;
int main()
{
string n;
int i=1;
while(cin>>n)
{
if (n=="HELLO")cout<<"Case "<<i<<": ENGLISH"<<endl;
else if (n=="HOLA")cout<<"Case "<<i<<": SPANISH"<<endl;
else if (n=="HALLO")cout<<"Case "<<i<<": GERMAN"<<endl;
else if (n=="BONJOUR")cout<<"Case "<<i<<": FRENCH"<<endl;
else if (n=="CIAO")cout<<"Case "<<i<<": ITALIAN"<<endl;
else if (n=="ZDRAVSTVUJTE")cout<<"Case "<<i<<": RUSSIAN"<<endl;
else cout<<"Case "<<i<<": UNKNOWN"<<endl;
i++;
}
}
它顯示:(請勿輸出題目未要求的文字:
Case 304: UNKNOWN)
輸入以僅含有一個「#」的一行作為結束,該行不需處理。