Aligning Output

How would I align the output of a program?

Just centering this.
 
cout << "Hello World!" <<endl;
Use setw
follow the following link http://www.cplusplus.com/reference/iomanip/setw/
Topic archived. No new replies allowed.