Click here to Skip to main content
14,388,492 members

C / C++ / MFC

 
SuggestionRe: Private test case failed Pin
Richard MacCutchan26-Oct-18 23:41
mveRichard MacCutchan26-Oct-18 23:41 
QuestionRe: Private test case failed Pin
David Crow29-Oct-18 8:11
MemberDavid Crow29-Oct-18 8:11 
QuestionCatch javascript event in CHtmlView Pin
_Flaviu24-Oct-18 0:37
Member_Flaviu24-Oct-18 0:37 
GeneralRe: Catch javascript event in CHtmlView Pin
_Flaviu26-Oct-18 2:14
Member_Flaviu26-Oct-18 2:14 
AnswerRe: Catch javascript event in CHtmlView Pin
Afzaal Ahmad Zeeshan24-Oct-18 1:51
mvaAfzaal Ahmad Zeeshan24-Oct-18 1:51 
Questiondouble signed comparison in C++ Pin
kamal197723-Oct-18 17:42
Memberkamal197723-Oct-18 17:42 
AnswerRe: double signed comparison in C++ Pin
CPallini23-Oct-18 21:47
mveCPallini23-Oct-18 21:47 
AnswerRe: double signed comparison in C++ Pin
Victor Nijegorodov23-Oct-18 22:04
MemberVictor Nijegorodov23-Oct-18 22:04 
It is because your
Quote:
bool flag;
was NOT initialized and contains garbage that is treated as true just because it is not zero.

Try:
double a = -60 ;
double b = -7500 

bool flag = (a < b);

Questionclistctrl class Pin
Jim Overby23-Oct-18 9:01
MemberJim Overby23-Oct-18 9:01 
AnswerRe: clistctrl class Pin
Victor Nijegorodov23-Oct-18 9:11
MemberVictor Nijegorodov23-Oct-18 9:11 
AnswerRe: clistctrl class Pin
Joe Woodbury23-Oct-18 9:29
professionalJoe Woodbury23-Oct-18 9:29 
SuggestionRe: clistctrl class Pin
David Crow23-Oct-18 10:34
MemberDavid Crow23-Oct-18 10:34 
Questionhelp Pin
sabrina life19-Oct-18 8:54
Membersabrina life19-Oct-18 8:54 
AnswerRe: help Pin
OriginalGriff19-Oct-18 9:00
mveOriginalGriff19-Oct-18 9:00 
GeneralRe: ? Pin
sabrina life19-Oct-18 9:21
Membersabrina life19-Oct-18 9:21 
RantRe: ? Pin
David Crow19-Oct-18 11:04
MemberDavid Crow19-Oct-18 11:04 
GeneralRe: ? Pin
sabrina life19-Oct-18 11:43
Membersabrina life19-Oct-18 11:43 
GeneralRe: ? Pin
OriginalGriff19-Oct-18 20:53
mveOriginalGriff19-Oct-18 20:53 
GeneralRe: ? Pin
sabrina life20-Oct-18 9:53
Membersabrina life20-Oct-18 9:53 
GeneralRe: ? Pin
OriginalGriff20-Oct-18 23:12
mveOriginalGriff20-Oct-18 23:12 
AnswerRe: help Pin
CPallini20-Oct-18 10:44
mveCPallini20-Oct-18 10:44 
GeneralRe: help Pin
sabrina life20-Oct-18 10:55
Membersabrina life20-Oct-18 10:55 
GeneralRe: help Pin
CPallini20-Oct-18 11:00
mveCPallini20-Oct-18 11:00 
QuestionSolve this runt time error code Pin
Member 1402130019-Oct-18 2:25
MemberMember 1402130019-Oct-18 2:25 
AnswerRe: Solve this runt time error code Pin
Victor Nijegorodov19-Oct-18 3:00
MemberVictor Nijegorodov19-Oct-18 3:00 

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.