Click here to Skip to main content
15,895,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Read a files summary Pin
Randor 15-Jul-09 14:58
professional Randor 15-Jul-09 14:58 
Questionwhy it prints 3? Pin
sam_psycho15-Jul-09 10:01
sam_psycho15-Jul-09 10:01 
AnswerRe: why it prints 3? Pin
David Crow15-Jul-09 10:08
David Crow15-Jul-09 10:08 
QuestionRe: why it prints 3? Pin
CPallini15-Jul-09 10:16
mveCPallini15-Jul-09 10:16 
AnswerRe: why it prints 3? Pin
David Crow15-Jul-09 10:17
David Crow15-Jul-09 10:17 
GeneralRe: why it prints 3? Pin
CPallini15-Jul-09 10:20
mveCPallini15-Jul-09 10:20 
AnswerRe: why it prints 3? Pin
CPallini15-Jul-09 10:13
mveCPallini15-Jul-09 10:13 
AnswerRe: why it prints 3? Pin
Stuart Dootson15-Jul-09 12:24
professionalStuart Dootson15-Jul-09 12:24 
a=0 is assignment. You probably wanted a==0 (two = signs), which is hte equality test.

One of the things that's nice (when you're experienced), yet horrible (when you're learning) about C and C++ is that assignment is an expression, not a statement, which means that you can do what you've done there.

In other languages like Ada, which class assignment as a statement, you couldn't make that mistake.

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: why it prints 3? Pin
sam_psycho15-Jul-09 15:25
sam_psycho15-Jul-09 15:25 
GeneralRe: why it prints 3? Pin
«_Superman_»15-Jul-09 17:03
professional«_Superman_»15-Jul-09 17:03 
GeneralRe: why it prints 3? Pin
harold aptroot15-Jul-09 18:43
harold aptroot15-Jul-09 18:43 
QuestionRe: why it prints 3? Pin
David Crow16-Jul-09 2:59
David Crow16-Jul-09 2:59 
QuestionPaintDesktop Pin
daavena15-Jul-09 9:45
daavena15-Jul-09 9:45 
AnswerRe: PaintDesktop Pin
CPallini15-Jul-09 10:19
mveCPallini15-Jul-09 10:19 
GeneralRe: PaintDesktop Pin
Sauce!21-Jul-09 6:19
Sauce!21-Jul-09 6:19 
QuestionBufferring PAckets Pin
resolvequestion15-Jul-09 9:11
resolvequestion15-Jul-09 9:11 
AnswerRe: Bufferring PAckets Pin
Randor 15-Jul-09 11:31
professional Randor 15-Jul-09 11:31 
AnswerRe: Bufferring PAckets Pin
«_Superman_»15-Jul-09 17:15
professional«_Superman_»15-Jul-09 17:15 
Questionwavelet transform c++ program Pin
mrby12315-Jul-09 8:34
mrby12315-Jul-09 8:34 
AnswerRe: wavelet transform c++ program Pin
CPallini15-Jul-09 9:34
mveCPallini15-Jul-09 9:34 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 9:47
mrby12315-Jul-09 9:47 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 10:17
mrby12315-Jul-09 10:17 
GeneralRe: wavelet transform c++ program Pin
Rick York15-Jul-09 10:26
mveRick York15-Jul-09 10:26 
GeneralRe: wavelet transform c++ program Pin
mrby12315-Jul-09 18:20
mrby12315-Jul-09 18:20 
QuestionNon-template based common data structure? Pin
crewchill15-Jul-09 6:37
crewchill15-Jul-09 6:37 

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.