I believe you use it like this:
don't forget to include <iomanip>
cout << "Some text" << setwidth(5) << "Another text" << setwidth(5) << "Last text" << endl;
It adds some spacing. You may have to experiment with how long it should be.
I believe you use it like this:
don't forget to include <iomanip>
cout << "Some text" << setwidth(5) << "Another text" << setwidth(5) << "Last text" << endl;
It adds some spacing. You may have to experiment with how long it should be.
★ Inferno provides Programming Tutorials in a variety of languages. Join our Programming Forums. ★
got it working, thanks a lot. Assignment finished on time.