Click here to Skip to main content
12,622,252 members (36,508 online)

C / C++ / MFC

 
AnswerRe: Load an image dynamically in win32 using VC++ Pin
Max_Power_Up26-Feb-13 6:10
memberMax_Power_Up26-Feb-13 6:10 
QuestionWhy does so many companies use directUI to show GUI ? Pin
yu-jian20-Feb-13 16:09
groupyu-jian20-Feb-13 16:09 
QuestionCFileDialog in Dll Project Pin
LeeUnSong20-Feb-13 15:38
memberLeeUnSong20-Feb-13 15:38 
AnswerRe: CFileDialog in Dll Project Pin
Richard MacCutchan20-Feb-13 22:10
mvpRichard MacCutchan20-Feb-13 22:10 
GeneralRe: CFileDialog in Dll Project Pin
LeeUnSong21-Feb-13 1:31
memberLeeUnSong21-Feb-13 1:31 
GeneralRe: CFileDialog in Dll Project Pin
Richard MacCutchan21-Feb-13 2:16
mvpRichard MacCutchan21-Feb-13 2:16 
QuestionFormatting Output Pin
Sarah Trattner20-Feb-13 13:02
memberSarah Trattner20-Feb-13 13:02 
AnswerRe: Formatting Output Pin
Garth J Lancaster20-Feb-13 13:33
memberGarth J Lancaster20-Feb-13 13:33 
ok, we understand the pain ...but what have you tried so far Sarah ?

We try not to do people's homework by just giving them an answer - copying and pasting isnt going to help you learn, is it ?

So, Im going to give you the start of the answer ...

cout << setprecision(x) << fourth << endl; 

Why dont you type it in, (note, you need to replace the (x) in setprecision with a number - think carefully, or just try multiple output statements), compile and run it ..

Its probably bad form to have the 'using namespace' clause below, but for testing something quick, Im going to close my eyes and just do it the simple way, so, you'll also need

#include <iostream>
#include <iomanip>
using namespace std;

at the top of your program.

try it ...
GeneralRe: Formatting Output Pin
Sarah Trattner20-Feb-13 14:00
memberSarah Trattner20-Feb-13 14:00 
GeneralRe: Formatting Output Pin
Garth J Lancaster20-Feb-13 14:26
memberGarth J Lancaster20-Feb-13 14:26 
GeneralRe: Formatting Output Pin
Garth J Lancaster20-Feb-13 14:37
memberGarth J Lancaster20-Feb-13 14:37 
QuestionBOM Code Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 11:41
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:41 
SuggestionRe: BOM Code Pin
DavidCrow20-Feb-13 11:47
memberDavidCrow20-Feb-13 11:47 
GeneralRe: BOM Code Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 11:49
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:49 
QuestionOn displaying two images second image overlapps first image Pin
toms from newdelhi20-Feb-13 1:32
membertoms from newdelhi20-Feb-13 1:32 
AnswerRe: On displaying two images second image overlapps first image Pin
Richard MacCutchan20-Feb-13 3:40
mvpRichard MacCutchan20-Feb-13 3:40 
AnswerRe: On displaying two images second image overlapps first image Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 11:15
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:15 
QuestionCFileDialog with preview working in Xp but not in Win7 Pin
yogeshs19-Feb-13 19:50
memberyogeshs19-Feb-13 19:50 
AnswerRe: CFileDialog with preview working in Xp but not in Win7 Pin
Richard MacCutchan19-Feb-13 23:10
mvpRichard MacCutchan19-Feb-13 23:10 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
yogeshs19-Feb-13 23:46
memberyogeshs19-Feb-13 23:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
Richard MacCutchan20-Feb-13 0:01
mvpRichard MacCutchan20-Feb-13 0:01 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
yogeshs20-Feb-13 19:46
memberyogeshs20-Feb-13 19:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pin
Richard MacCutchan20-Feb-13 22:06
mvpRichard MacCutchan20-Feb-13 22:06 
QuestionProblem Reading/Writing Registry in Windows 7? Pin
Member 919975419-Feb-13 10:40
memberMember 919975419-Feb-13 10:40 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
DavidCrow19-Feb-13 10:50
memberDavidCrow19-Feb-13 10:50 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.161128.1 | Last Updated 2 Dec 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid