Click here to Skip to main content
15,915,603 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File Compiling Order in VC++ Pin
Jon Hulatt20-Jan-02 21:52
Jon Hulatt20-Jan-02 21:52 
GeneralRe: File Compiling Order in VC++ Pin
Aaron K.B. Huang20-Jan-02 21:58
Aaron K.B. Huang20-Jan-02 21:58 
GeneralCProgressCtrl Pin
RobJones20-Jan-02 18:13
RobJones20-Jan-02 18:13 
GeneralRe: CProgressCtrl Pin
Michael Dunn20-Jan-02 19:00
sitebuilderMichael Dunn20-Jan-02 19:00 
GeneralRe: CProgressCtrl Pin
RobJones20-Jan-02 19:23
RobJones20-Jan-02 19:23 
GeneralArithmetic Expression Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Expression Pin
Jon Sagara20-Jan-02 18:03
Jon Sagara20-Jan-02 18:03 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt20-Jan-02 21:58
Jon Hulatt20-Jan-02 21:58 
ok. saying "n5 -=" is equivalent to saying "n5=n5-". the rest of it is down to operator precedence. see "operator presecence" in MSDN.

but, you can make that expression clearer by writing it like this:

n5=n5- 7 + (2 / (3 *10)) ;

why? because in VC++, / has higher precedence that +

the second expression:

f2= 10.0 - (18.0 / (-3.0 * 2.5e-1));

In both cases, i suspect you're getting a different answer than you intended, due to operator precedence. It's good practise to always specify precedence with ()'s.

Sorry to dissapoint you all with my lack of a witty or poignant signature.
GeneralRe: Arithmetic Expression Pin
Christian Graus20-Jan-02 22:08
protectorChristian Graus20-Jan-02 22:08 
GeneralRe: Arithmetic Expression Pin
Jon Hulatt21-Jan-02 1:54
Jon Hulatt21-Jan-02 1:54 
GeneralRe: Arithmetic Expression Pin
Christian Graus21-Jan-02 5:45
protectorChristian Graus21-Jan-02 5:45 
GeneralArithmetic Pin
Geoffrey20-Jan-02 17:36
Geoffrey20-Jan-02 17:36 
GeneralRe: Arithmetic Pin
Christian Graus20-Jan-02 17:47
protectorChristian Graus20-Jan-02 17:47 
QuestionBest wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:35
Jay Beckert20-Jan-02 16:35 
AnswerRe: Best wat to download a file with http? Pin
Michael Dunn20-Jan-02 16:55
sitebuilderMichael Dunn20-Jan-02 16:55 
GeneralRe: Best wat to download a file with http? Pin
Jay Beckert20-Jan-02 16:59
Jay Beckert20-Jan-02 16:59 
GeneralCopyMemory problems Pin
alex.barylski20-Jan-02 12:59
alex.barylski20-Jan-02 12:59 
GeneralRe: CopyMemory problems Pin
alex.barylski20-Jan-02 13:28
alex.barylski20-Jan-02 13:28 
Generalput images on GDI Pin
DiegoValdevino20-Jan-02 12:54
DiegoValdevino20-Jan-02 12:54 
GeneralRe: put images on GDI Pin
Christian Graus20-Jan-02 13:03
protectorChristian Graus20-Jan-02 13:03 
QuestionTopMost Maximized Window? Pin
DiegoValdevino20-Jan-02 12:50
DiegoValdevino20-Jan-02 12:50 
AnswerRe: TopMost Maximized Window? Pin
Andrew Peace20-Jan-02 14:39
Andrew Peace20-Jan-02 14:39 
Generalcreate an owned popup window Pin
20-Jan-02 12:18
suss20-Jan-02 12:18 
GeneralRe: create an owned popup window Pin
24-Jan-02 15:18
suss24-Jan-02 15:18 
GeneralSkin a window Pin
The_Server20-Jan-02 12:12
The_Server20-Jan-02 12:12 

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.