Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVisual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 15:21
gedinfo4-Mar-10 15:21 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
«_Superman_»4-Mar-10 15:53
professional«_Superman_»4-Mar-10 15:53 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 16:12
gedinfo4-Mar-10 16:12 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
Gwenio4-Mar-10 16:50
Gwenio4-Mar-10 16:50 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
KarstenK4-Mar-10 21:31
mveKarstenK4-Mar-10 21:31 
QuestionConvert a file into .doc template? Pin
gedinfo4-Mar-10 11:18
gedinfo4-Mar-10 11:18 
AnswerRe: Convert a file into .doc template? Pin
«_Superman_»4-Mar-10 15:44
professional«_Superman_»4-Mar-10 15:44 
Questionusing flags for cout [Solved] Pin
b-rad3114-Mar-10 11:16
b-rad3114-Mar-10 11:16 
Hello,

I'm printing out doubles in c++, but not all the values have significant digits. Thus I'd like to accomplish the following using cout:

1.) If value is 90.00, then display it as 90 (no trailing zeros)
2.) If value is 99999999999999.0, then display it as 99999999999999 (not in scientific form)
3.) If value is 9.85545, then display it as 9.85545 (no precision loss)

Is there a combination of simultaneous ios flags that can be used with a single cout statement to accomplish the above 3 goals?

Thanks,
AnswerRe: using flags for cout Pin
Gwenio4-Mar-10 11:58
Gwenio4-Mar-10 11:58 
GeneralRe: using flags for cout Pin
b-rad3114-Mar-10 12:12
b-rad3114-Mar-10 12:12 
GeneralRe: using flags for cout [modified] Pin
Gwenio4-Mar-10 13:38
Gwenio4-Mar-10 13:38 
GeneralRe: using flags for cout Pin
«_Superman_»4-Mar-10 16:03
professional«_Superman_»4-Mar-10 16:03 
GeneralRe: using flags for cout [modified] Pin
Gwenio4-Mar-10 16:19
Gwenio4-Mar-10 16:19 
GeneralRe: using flags for cout Pin
b-rad3114-Mar-10 17:01
b-rad3114-Mar-10 17:01 
Questionctime - localtime -> GMT question Pin
minkowski4-Mar-10 6:29
minkowski4-Mar-10 6:29 
AnswerRe: ctime - localtime -> GMT question Pin
Graham Breach4-Mar-10 7:59
Graham Breach4-Mar-10 7:59 
GeneralRe: ctime - localtime -> GMT question Pin
minkowski4-Mar-10 22:53
minkowski4-Mar-10 22:53 
Questionpresent int as char Pin
Aljaz1114-Mar-10 5:01
Aljaz1114-Mar-10 5:01 
AnswerRe: present int as char Pin
Eugen Podsypalnikov4-Mar-10 5:20
Eugen Podsypalnikov4-Mar-10 5:20 
AnswerRe: present int as char Pin
«_Superman_»4-Mar-10 16:08
professional«_Superman_»4-Mar-10 16:08 
AnswerRe: present int as char [modified] Pin
Gwenio4-Mar-10 16:42
Gwenio4-Mar-10 16:42 
QuestionLoadIcon from file Pin
johnalek4-Mar-10 4:40
johnalek4-Mar-10 4:40 
AnswerRe: LoadIcon from file Pin
Eugen Podsypalnikov4-Mar-10 4:51
Eugen Podsypalnikov4-Mar-10 4:51 
QuestionEmbeded local web server Pin
ryanstd4-Mar-10 2:13
ryanstd4-Mar-10 2:13 
AnswerRe: Embeded local web server Pin
Chris Losinger4-Mar-10 3:39
professionalChris Losinger4-Mar-10 3:39 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.