C++ Program to implement setw manipulator in OOP

0
12
digitalample eye
Write a program to display data in given format using setw().
Write a oop program to display data in given format.

Write a C++ program to implement setw. 
How to implement setw in c++ programming. 
Implement setw manipulator in object oriented programming.

UUNIVERSITY                    LOCATION
                   TU                     KATHMANDU

                   KU                     DULIKHEL

C++ Code

#include<iostream.h>
#include<conio.h>
#include<iomanip.h>
void main()
{
cout<<setw(10)<<"UNIVERSITY"<<setw(19)<<"LOCATION"<<endl;
cout<<setw(10)<<"TU"<<setw(17)<<"BALKHU"<<endl;
cout<<setw(10)<<"KU"<<setw(20)<<"DHULIKHEL"<<endl;

cout<<endl<<"Thank you"<<endl;
cout<<endl<<"Press any key to continue...";
getch();
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here