Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
using namespace std;
int main()
{
string one;
cout << "Please print code as 'XXX XXX XXX'." << endl;
getline(cin, one);
for(int x=0; x<one.length(); x++)
{
if(one[x]=='Z')
{
one[x] = 'A';
}
else if(one[x]=='z')
{
one[x] = 'a';
}
else if(one[x] != ' ')
{
one[x] += 1;
}
}
cout << one << endl;
}