Created
December 7, 2017 14:59
-
-
Save ebba0194/fc242f1cc66c9a2f411bbb20d17d6036 to your computer and use it in GitHub Desktop.
8.1 cities
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
using namespace std; | |
string province(string); | |
int main(){ | |
string city, abbrev, prov; | |
cout<<"Enter city: "; | |
getline(cin,city); | |
cout<<"Enter province abbreviation: "; | |
cin>>abbrev; | |
prov = province(abbrev); | |
cout<<city+prov; | |
return (0); | |
} | |
string province (string abbrev){ | |
return (abbrev); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment