city - getline(cin city_name cout<<"What is the...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// city.cpp / #include <iostream.h> #include "apstring.h" # int main() { apstring city_name; unsigned long population; cout << "What is the name of your city or town? ";
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: getline(cin, city_name); cout << "What is the population of the city or town? "; cin >> population; cin.ignore(80,'\n'); return 0; }...
View Full Document

This note was uploaded on 06/20/2011 for the course COMPUTER 12 taught by Professor Aymanboghdady during the Spring '11 term at American College of Computer & Information Sciences.

Ask a homework question - tutors are online