101
{ USER }
posts: 55
last: 09-Apr-2008
TITLE: Cout width example
DESCRIPTION: Cout width example
Submitted: 09-Apr-2008 07:53:37 ( 38w 5d 22h ago ) Language: C++ (*.cpp *.h)
Views: 76 Lines of Code: 22 LINES
Rating:
rate: star1
star2
star3
star4
star5
dstar1
dstar2
dstar3
dstar4
dstar5  ( rated! )
  { 0.00 / 5 }
Difficulty: Beginner
Bookmark
/* Author: 101
   Date: 09-04-2008
   Filename: 
   Description: Cout width example
   History: 
*/


//illustrates setting cout width 
#include <iostream.h>
#include <stdlib.h>
#include <iomanip.h>

int main()
{

cout<<setw(20)<<"setw(20)"<<endl;
cout<<setw(10)<<"setw(10)"<<endl;
cout<<setw(15)<<"setw(15)"<<endl;

return 0;
}