language: C++ 4.7.2 (gcc-4.7.2)
date: 429 days 13 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
 
int main () {
 
// Setw() - This advanced the coursor a number of spaces.
        cout<<"I use setw(15) so next line has to be 15 total chars"<<endl;
        cout << setw (15);
        cout <<"Fifteen"<<endl;
        cout<<"12345678"<<endl<<endl;
        cout<<"Fifteen==7, 15-7=8... so the count is 8 chars indented"<<endl;
 
 
 
//-------------Pause
        cout<<endl<<endl<<endl<<"Please Close Console Window"<<endl;
        cin.ignore('\n', 1024);
        return(0);
}
set(w)