//Sample Program to demonstrate the usage of manipulator
#include < iostream.h >
#include < iomanip.h >
#include < conio.h >
void main()
{
long pop1=2425785,pop2=47,pop3=9761;
clrscr();
cout << setw(10) << "LOCATION" << setw(17) << "POPULATION" << endl << "------------------------" << endl;
cout << setw(10) << "portcity" << setw(17) << pop1 << endl << endl;
cout << setw(10) << "Hightown" << setw(17) << pop2 << endl<< endl;
cout << setw(10) << "Newtown" << setw(17) << pop3 << endl;
getch();
}
<< GO BACK

Our aim is to provide information to the knowledge seekers.


comments powered by Disqus

Footer1