iomanip strings
Is it possible to use io manipulators on string data types and if not what other way is their to organize output of strings.
I have the following section of code however setw fails to do anything.
1 2 3 4 5
|
cout.setf(ios::left);
cout << setw(25) << currentNode->key.substr(0,20);
cout << setw(35) << currentNode->title.substr(0,30);
cout << setw(20) << currentNode->name.substr(0,20) << endl;
|
Topic archived. No new replies allowed.