here is my code. i do not know how to make so that the shorter ones adjust to the longer ones. help!
but simple please! i am just beginning. the problem is that the "stuff" is the same in the four columns. How do i do something without changing the orginial "stuff"/
[
cout << object_one << setw(10) << number_one << "\n"; cout << object_two << setw(10) << number_two << "\n"; cout << fixed; cout << setprecision(2); cout << object_one.substr(0,object_one.length()-1) << "-to-" << object_two.substr(0,object_two.length()-1) << " ratio " << setw(10) << ratio_one << "\n"; cout << object_two.substr(0,object_two.length()-1) << "-to-" << object_one.substr(0,object_one.length()-1) << " ratio " << setw(10) << ratio_two << "\n";]
This post has been edited by jimblumberg: 08 July 2012 - 03:38 PM
Reason for edit:: Added missing Code Tags, Please learn to use them.

New Topic/Question
Reply



MultiQuote





|