Skip to content

Instantly share code, notes, and snippets.

@ebba0194
Created December 7, 2017 14:59
Show Gist options
  • Save ebba0194/fc242f1cc66c9a2f411bbb20d17d6036 to your computer and use it in GitHub Desktop.
Save ebba0194/fc242f1cc66c9a2f411bbb20d17d6036 to your computer and use it in GitHub Desktop.
8.1 cities
#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