Click here to Skip to main content
11,478,619 members (67,404 online)

C / C++ / MFC

 
GeneralRe: How Print multiple copies with printdlg in MFC Pin
haha_c21-Feb-13 0:31
memberhaha_c21-Feb-13 0:31 
QuestionLoad an image dynamically in win32 using VC++ Pin
toms from newdelhi20-Feb-13 21:05
membertoms from newdelhi20-Feb-13 21:05 
AnswerRe: Load an image dynamically in win32 using VC++ Pin
_AnsHUMAN_ 20-Feb-13 21:56
group_AnsHUMAN_ 20-Feb-13 21:56 
AnswerRe: Load an image dynamically in win32 using VC++ Pin
Richard MacCutchan20-Feb-13 23:32
mvpRichard MacCutchan20-Feb-13 23:32 
GeneralRe: Load an image dynamically in win32 using VC++ Pin
toms from newdelhi21-Feb-13 1:27
membertoms from newdelhi21-Feb-13 1:27 
GeneralRe: Load an image dynamically in win32 using VC++ Pin
Richard MacCutchan21-Feb-13 2:14
mvpRichard MacCutchan21-Feb-13 2:14 
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 [modified] 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 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975419-Feb-13 14:10
memberMember 919975419-Feb-13 14:10 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Peter_in_278019-Feb-13 21:48
memberPeter_in_278019-Feb-13 21:48 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975420-Feb-13 7:27
memberMember 919975420-Feb-13 7:27 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
jschell20-Feb-13 9:11
memberjschell20-Feb-13 9:11 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
jeron120-Feb-13 9:14
memberjeron120-Feb-13 9:14 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pin
Member 919975420-Feb-13 17:31
memberMember 919975420-Feb-13 17:31 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pin
Max_Power_Up26-Feb-13 6:21
memberMax_Power_Up26-Feb-13 6:21 
QuestionUsing C++ TagLib, not TagLib Sharp - how to write APIC frames Pin
Steve S19-Feb-13 7:32
memberSteve S19-Feb-13 7:32 
AnswerRe: Using C++ TagLib, not TagLib Sharp - how to write APIC frames Pin
Steve S19-Feb-13 8:21
memberSteve S19-Feb-13 8:21 
Question[MFC] How to use the Picture Control to show jpg image? Pin
yu-jian19-Feb-13 5:26
groupyu-jian19-Feb-13 5:26 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pin
jeron119-Feb-13 5:35
memberjeron119-Feb-13 5:35 
GeneralRe: [MFC] How to use the Picture Control to show jpg image? Pin
yu-jian20-Feb-13 17:32
groupyu-jian20-Feb-13 17:32 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pin
Michael Haephrati מיכאל האפרתי20-Feb-13 11:20
mvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:20 
Questionglut project Pin
abhi sharma19-Feb-13 3:02
memberabhi sharma19-Feb-13 3:02 
AnswerRe: glut project Pin
Richard MacCutchan19-Feb-13 4:06
mvpRichard MacCutchan19-Feb-13 4:06 
Questionexe fine in codeblocks Pin
abhi sharma19-Feb-13 2:54
memberabhi sharma19-Feb-13 2:54 
AnswerRe: exe fine in codeblocks Pin
Albert Holguin19-Feb-13 5:10
memberAlbert Holguin19-Feb-13 5:10 
QuestionRe: exe fine in codeblocks Pin
DavidCrow19-Feb-13 5:40
memberDavidCrow19-Feb-13 5:40 
QuestionWDK 7600.16385.1 Compiler Pin
msr_codeproject18-Feb-13 18:44
membermsr_codeproject18-Feb-13 18:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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
Web03 | 2.8.150520.1 | Last Updated 22 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid