C / C++ / MFC
|
|
 |

|
I need help deciphering how to use manipulators to put together this output statement correctly. (setprecision, setw, right...etc.). This is just one small part of my homework, but if I can see this worked out I should be able to put the rest together myself. My professor has no communication or teaching skills and leaves me confused.
Output fourth with four digits, with the sign shown at the left, and the value right aligned. The decimal point must also appear.
Here is the program my professor is having us go by:
cout << "Enter bool, int, long, float, float, and double values: ";
cin >> first >> second >> third >> fourth >> fifth >> sixth;
modified 20 Feb '13 - 18:10.
|
|
|
|
 |
|
|
General
News
Suggestion
Question
Bug
Answer
Joke
Rant
Admin