Reply to post:

Intellisense was off and developer learned you can't code in Canadian

swm

A student wrote a program containing roughly:

if(char == '/') { // handle /

...

else if(char == '\') { // handle \

...

}

and was getting errors. The student assistant was mystified and so was I for a while until I remembered that the character \ deletes the end of line character so the next line was included in the comment.

POST COMMENT House rules

Not a member of The Register? Create a new account here.

  • Enter your comment

  • Add an icon

Anonymous cowards cannot choose their icon