I\'m pretty sure this is a simple question in regards to formatting but here\'s what I want to accomplish:
I want to output data onto the screen using cout
cout
setw.
#include #include using namespace std; int main () { cout << setw(21) << left << "Test" << 1 << endl; cout << setw(21) << left << "Test2" << 2 << endl; cout << setw(21) << left << "Iamlongverylongblah" << 2 << endl; cout << setw(21) << left << "Etc" << 1 << endl; return 0; }