Click here to Skip to main content
15,903,175 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: dynamically creating controls Pin
John R. Shaw16-Feb-06 20:15
John R. Shaw16-Feb-06 20:15 
AnswerRe: dynamically creating controls Pin
BadKarma16-Feb-06 21:02
BadKarma16-Feb-06 21:02 
Questionindependent Effects in DirectX8 Pin
calgonite216-Feb-06 14:35
calgonite216-Feb-06 14:35 
QuestionNeed info on some good books!! Pin
pavanbabut16-Feb-06 13:05
pavanbabut16-Feb-06 13:05 
AnswerRe: Need info on some good books!! Pin
A.A.16-Feb-06 19:09
A.A.16-Feb-06 19:09 
GeneralRe: Need info on some good books!! Pin
pavanbabut17-Feb-06 7:31
pavanbabut17-Feb-06 7:31 
GeneralRe: Need info on some good books!! Pin
A.A.18-Feb-06 15:18
A.A.18-Feb-06 15:18 
GeneralRe: Need info on some good books!! Pin
pavanbabut21-Feb-06 7:02
pavanbabut21-Feb-06 7:02 
QuestionRemoveAll() method Pin
Kleser16-Feb-06 11:51
Kleser16-Feb-06 11:51 
AnswerRe: RemoveAll() method Pin
George L. Jackson16-Feb-06 12:38
George L. Jackson16-Feb-06 12:38 
AnswerRe: RemoveAll() method Pin
Owner drawn16-Feb-06 17:21
Owner drawn16-Feb-06 17:21 
AnswerRe: RemoveAll() method Pin
John R. Shaw16-Feb-06 20:23
John R. Shaw16-Feb-06 20:23 
AnswerRe: RemoveAll() method Pin
ThatsAlok17-Feb-06 3:36
ThatsAlok17-Feb-06 3:36 
GeneralRe: RemoveAll() method Pin
Kleser17-Feb-06 4:28
Kleser17-Feb-06 4:28 
GeneralRe: RemoveAll() method Pin
ThatsAlok17-Feb-06 19:18
ThatsAlok17-Feb-06 19:18 
GeneralRe: RemoveAll() method Pin
Kleser18-Feb-06 11:45
Kleser18-Feb-06 11:45 
QuestionNeed help with code! Pin
scorpiotkh16-Feb-06 9:49
scorpiotkh16-Feb-06 9:49 
AnswerRe: Need help with code! Pin
David Crow16-Feb-06 10:53
David Crow16-Feb-06 10:53 
scorpiotkh wrote:
if(90<=s<=100){
a++;
}else if(80<=s<=89.9){
b++;
}else if(70<=s<=79.9){
c++;
}else if(60<=s<=69.9){
d++;
}else{
f++;
}


Do you see the problem with this? It should instead look like:

if (90.0 <= && s <= 100.0)
    a++;
else if (80.0 <= s && s <= 89.9)
    b++;
...

scorpiotkh wrote:
...it does not seem to work...


Which means nothing useful. What exactly is not working?

Not that it will correct the problem, but change float to double, and use floating-point constants (e.g., 0.0).


"The greatest good you can do for another is not just to share your riches but to reveal to him his own." - Benjamin Disraeli


GeneralRe: Need help with code! Pin
Nick_Kisialiou16-Feb-06 13:58
Nick_Kisialiou16-Feb-06 13:58 
GeneralRe: Need help with code! Pin
scorpiotkh16-Feb-06 15:08
scorpiotkh16-Feb-06 15:08 
GeneralRe: Need help with code! Pin
scorpiotkh16-Feb-06 14:07
scorpiotkh16-Feb-06 14:07 
GeneralRe: Need help with code! Pin
David Crow16-Feb-06 15:18
David Crow16-Feb-06 15:18 
QuestionDefault constructor vs. Explicit constructor Pin
bob1697216-Feb-06 8:54
bob1697216-Feb-06 8:54 
AnswerRe: Default constructor vs. Explicit constructor Pin
Michael Dunn16-Feb-06 9:03
sitebuilderMichael Dunn16-Feb-06 9:03 
GeneralRe: Default constructor vs. Explicit constructor Pin
bob1697216-Feb-06 9:10
bob1697216-Feb-06 9:10 

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.