-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage.cpp
More file actions
54 lines (51 loc) · 857 Bytes
/
Copy pathlanguage.cpp
File metadata and controls
54 lines (51 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#include<bits/stdc++.h>
using namespace std;
{
vector<string>word;
word.push_back("HELLO");
word.push_back("HOLA");
word.push_back("HALLO");
word.push_back("BONJOUR");
word.push_back("CIAO");
word.push_back("ZDRAVSTVUJTE");
string str;
int i=0;
while(cin>>str)
{
if(str=="#")
{
break;
}
else if(str==word[0])
{
i++;
cout<<"Case "<<i<<": <<"ENGLISH"<<endl;
}
else if(str==word[1])
{
i++;
cout<<"Case "<<i<<": <<"SPANISH"<<endl;
}
else if(str==word[2])
{
i++;
cout<<"Case "<<i<<": <<"GERMAN"<<endl;
}
else if(str==word[3])
{
i++;
cout<<"Case "<<i<<": <<"FRENCH"<<endl;
}
else if(str==word[4])
{
i++;
cout<<"Case "<<i<<": <<"RUSSIAN"<<endl;
}
else
{
i++;
cout<<"Case "<<i<<": <<"UNKNOWN"<<endl;
}
}
return 0;
}