Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: i have a problem, how to solve it ? Pin
JohnCz26-Nov-09 22:14
JohnCz26-Nov-09 22:14 
GeneralRe: i have a problem, how to solve it ? Pin
nenfa27-Nov-09 2:31
nenfa27-Nov-09 2:31 
AnswerRe: i have a problem, how to solve it ? Pin
JohnCz27-Nov-09 6:39
JohnCz27-Nov-09 6:39 
GeneralRe: i have a problem, how to solve it ? Pin
nenfa27-Nov-09 15:54
nenfa27-Nov-09 15:54 
GeneralRe: i have a problem, how to solve it ? [modified] Pin
JohnCz26-Nov-09 20:03
JohnCz26-Nov-09 20:03 
GeneralRe: i have a problem, how to solve it ? Pin
JohnCz26-Nov-09 21:36
JohnCz26-Nov-09 21:36 
QuestionWhy there is difference in outputs when i change the compiler? Pin
Nilesh Hamane25-Nov-09 20:26
Nilesh Hamane25-Nov-09 20:26 
AnswerRe: Why there is difference in outputs when i change the compiler? Pin
Code-o-mat25-Nov-09 20:40
Code-o-mat25-Nov-09 20:40 
Different compilers might -and will- interpret the code differently, don't be surprised at this because either some compilers follow standards, some don't, ot they interpret them differently, or the standard itself does not specify every possible aspect of a given problem so the guys making the compiler are free to handle it as they see fit. Based on your code sniplet, i'd say that the Turbo C version will "run" from right to left, so:
k > 40 -> 0, since k is at this point 35 which is less than 40
k = 50 -> 50, since k is 50
k == 35 -> 0, sinke k is 50 which is not 35
While the MS compiler is probably doing it in this order:
k = 50 -> 50, makes k 50 at first
k == 35 -> 0, since k is 50, not 35
k > 40 -> 1 since k is 50 which is greater than 40
There might be other explanations too i guess.

> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <

AnswerRe: Why there is difference in outputs when i change the compiler? Pin
Nilesh Hamane25-Nov-09 22:16
Nilesh Hamane25-Nov-09 22:16 
GeneralRe: Why there is difference in outputs when i change the compiler? Pin
Code-o-mat25-Nov-09 22:29
Code-o-mat25-Nov-09 22:29 
GeneralRe: Why there is difference in outputs when i change the compiler? Pin
Luc Pattyn26-Nov-09 7:16
sitebuilderLuc Pattyn26-Nov-09 7:16 
QuestionHow to hide a baloon tip in a tray icon after some seconds? Pin
Erik25-Nov-09 10:45
Erik25-Nov-09 10:45 
AnswerRe: How to hide a baloon tip in a tray icon after some seconds? Pin
Rozis25-Nov-09 14:24
Rozis25-Nov-09 14:24 
AnswerRe: How to hide a baloon tip in a tray icon after some seconds? Pin
Naveen25-Nov-09 16:32
Naveen25-Nov-09 16:32 
QuestionHow can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Erik25-Nov-09 8:54
Erik25-Nov-09 8:54 
AnswerRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Stefan7625-Nov-09 10:11
Stefan7625-Nov-09 10:11 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Michael Schubert25-Nov-09 11:39
Michael Schubert25-Nov-09 11:39 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Rajesh R Subramanian25-Nov-09 18:56
professionalRajesh R Subramanian25-Nov-09 18:56 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Stefan7626-Nov-09 2:11
Stefan7626-Nov-09 2:11 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Rajesh R Subramanian26-Nov-09 5:22
professionalRajesh R Subramanian26-Nov-09 5:22 
AnswerRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Michael Schubert25-Nov-09 11:33
Michael Schubert25-Nov-09 11:33 
GeneralRe: How can I install Platform SDK for Visual Studio 6.0 on XP SP3? Pin
Erik25-Nov-09 11:58
Erik25-Nov-09 11:58 
Questionhow to make winapi control "edit" transparent? Pin
nenfa25-Nov-09 5:07
nenfa25-Nov-09 5:07 
AnswerRe: how to make winapi control "edit" transparent? Pin
Richard MacCutchan25-Nov-09 6:53
mveRichard MacCutchan25-Nov-09 6:53 
AnswerRe: how to make winapi control "edit" transparent? Pin
«_Superman_»25-Nov-09 9:26
professional«_Superman_»25-Nov-09 9:26 

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.