Click here to Skip to main content
       

C / C++ / MFC

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
GeneralRe: CFileDialog in Dll ProjectmemberLeeUnSong21 Feb '13 - 0:31 
GeneralRe: CFileDialog in Dll ProjectmvpRichard MacCutchan21 Feb '13 - 1:16 
QuestionFormatting Output [modified]memberSarah Trattner20 Feb '13 - 12:02 
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 Mad | :mad: communication or teaching skills and leaves me confused. WTF | :WTF:
 
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.

AnswerRe: Formatting OutputmemberGarth J Lancaster20 Feb '13 - 12:33 
GeneralRe: Formatting OutputmemberSarah Trattner20 Feb '13 - 13:00 
GeneralRe: Formatting OutputmemberGarth J Lancaster20 Feb '13 - 13:26 
GeneralRe: Formatting OutputmemberGarth J Lancaster20 Feb '13 - 13:37 
QuestionBOM CodemvpMichael Haephrati מיכאל האפרתי20 Feb '13 - 10:41 
SuggestionRe: BOM CodememberDavidCrow20 Feb '13 - 10:47 
GeneralRe: BOM CodemvpMichael Haephrati מיכאל האפרתי20 Feb '13 - 10:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web03 | 2.6.130516.1 | Last Updated 20 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid