|
From: Steve S. <she...@ho...> - 2003-09-20 13:20:38
|
<html><div style='background-color:'><DIV>I am a student learning basic programming and this is one of the sample programs that was provided. When I compile and run it I get errors. Please help.</DIV>
<DIV><A href="mailto:dev-cpp-us"></A> </DIV>
<DIV>// city.cpp </DIV>
<DIV></DIV>#include <iostream.h><IOSTREAM.H>
<DIV></DIV>#include "apstring.h"
<DIV></DIV>
<DIV></DIV>int main()
<DIV></DIV>{
<DIV></DIV>apstring city_name;
<DIV></DIV>unsigned long population;
<DIV></DIV>
<DIV></DIV>cout << "What is the name of your city or town? ";
<DIV></DIV>getline(cin, city_name);
<DIV></DIV>
<DIV></DIV>cout << "What is the population of the city or town? ";
<DIV></DIV>cin >> population;
<DIV></DIV>cin.ignore(80,'\n');
<DIV></DIV>
<DIV></DIV>return 0;
<DIV></DIV>}</div><br clear=all><hr> <a href="http://g.msn.com/8HMBENUS/2737??PS=">Instant message with integrated webcam using MSN Messenger 6.0. Try it now FREE</a> </html>
|