Click here to Skip to main content
       

C / C++ / MFC

 
GeneralRe: How Print multiple copies with printdlg in MFC Pinmemberhaha_c21-Feb-13 0:31 
QuestionLoad an image dynamically in win32 using VC++ Pinmembertoms from newdelhi20-Feb-13 21:05 
AnswerRe: Load an image dynamically in win32 using VC++ Pingroup_AnsHUMAN_ 20-Feb-13 21:56 
AnswerRe: Load an image dynamically in win32 using VC++ PinmvpRichard MacCutchan20-Feb-13 23:32 
GeneralRe: Load an image dynamically in win32 using VC++ Pinmembertoms from newdelhi21-Feb-13 1:27 
GeneralRe: Load an image dynamically in win32 using VC++ PinmvpRichard MacCutchan21-Feb-13 2:14 
AnswerRe: Load an image dynamically in win32 using VC++ PinmemberMax_Power_Up26-Feb-13 6:10 
QuestionWhy does so many companies use directUI to show GUI ? Pingroupyu-jian20-Feb-13 16:09 
QuestionCFileDialog in Dll Project PinmemberLeeUnSong20-Feb-13 15:38 
AnswerRe: CFileDialog in Dll Project PinmvpRichard MacCutchan20-Feb-13 22:10 
GeneralRe: CFileDialog in Dll Project PinmemberLeeUnSong21-Feb-13 1:31 
GeneralRe: CFileDialog in Dll Project PinmvpRichard MacCutchan21-Feb-13 2:16 
QuestionFormatting Output [modified] PinmemberSarah Trattner20-Feb-13 13:02 
AnswerRe: Formatting Output PinmemberGarth 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 PinmemberSarah Trattner20-Feb-13 14:00 
GeneralRe: Formatting Output PinmemberGarth J Lancaster20-Feb-13 14:26 
GeneralRe: Formatting Output PinmemberGarth J Lancaster20-Feb-13 14:37 
QuestionBOM Code PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:41 
SuggestionRe: BOM Code PinmemberDavidCrow20-Feb-13 11:47 
GeneralRe: BOM Code PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:49 
QuestionOn displaying two images second image overlapps first image Pinmembertoms from newdelhi20-Feb-13 1:32 
AnswerRe: On displaying two images second image overlapps first image PinmvpRichard MacCutchan20-Feb-13 3:40 
AnswerRe: On displaying two images second image overlapps first image PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:15 
QuestionCFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs19-Feb-13 19:50 
AnswerRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan19-Feb-13 23:10 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs19-Feb-13 23:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan20-Feb-13 0:01 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 Pinmemberyogeshs20-Feb-13 19:46 
GeneralRe: CFileDialog with preview working in Xp but not in Win7 PinmvpRichard MacCutchan20-Feb-13 22:06 
QuestionProblem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 10:40 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberDavidCrow19-Feb-13 10:50 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975419-Feb-13 14:10 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberPeter_in_278019-Feb-13 21:48 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 7:27 
AnswerRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjschell20-Feb-13 9:11 
GeneralRe: Problem Reading/Writing Registry in Windows 7? Pinmemberjeron120-Feb-13 9:14 
GeneralRe: Problem Reading/Writing Registry in Windows 7? PinmemberMember 919975420-Feb-13 17:31 
AnswerRe: Problem Reading/Writing Registry in Windows 7? PinmemberMax_Power_Up26-Feb-13 6:21 
QuestionUsing C++ TagLib, not TagLib Sharp - how to write APIC frames PinmemberSteve S19-Feb-13 7:32 
AnswerRe: Using C++ TagLib, not TagLib Sharp - how to write APIC frames PinmemberSteve S19-Feb-13 8:21 
Question[MFC] How to use the Picture Control to show jpg image? Pingroupyu-jian19-Feb-13 5:26 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? Pinmemberjeron119-Feb-13 5:35 
GeneralRe: [MFC] How to use the Picture Control to show jpg image? Pingroupyu-jian20-Feb-13 17:32 
AnswerRe: [MFC] How to use the Picture Control to show jpg image? PinmvpMichael Haephrati מיכאל האפרתי20-Feb-13 11:20 
Questionglut project Pinmemberabhi sharma19-Feb-13 3:02 
AnswerRe: glut project PinmvpRichard MacCutchan19-Feb-13 4:06 
Questionexe fine in codeblocks Pinmemberabhi sharma19-Feb-13 2:54 
AnswerRe: exe fine in codeblocks PinmemberAlbert Holguin19-Feb-13 5:10 
QuestionRe: exe fine in codeblocks PinmemberDavidCrow19-Feb-13 5:40 
QuestionWDK 7600.16385.1 Compiler Pinmembermsr_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
Web01 | 2.8.1411022.1 | Last Updated 22 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid