Question: C++ setw() doesn't work properly if I use it more than once inone line? Example: cout < < Hi < < setw(5) < < Hello
C++ setw() doesn't work properly if I use it more than once inone line?
Example: cout << "Hi" << setw(5) << "Hello"<< setw(5) << "Hi" << endl;
output: HiHello Hi
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
