Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Strange comment in C++

Name: Anonymous 2012-02-26 22:43

As everybody knows you can comment your c++ code with //, but not everybody knows that you can comment the line below using //\

For example:
//\
this line is a comment

Name: Anonymous 2012-02-26 22:45

[code]//\
//\  //\[/code]

Name: Anonymous 2012-02-26 23:02

Of course, [code]\[/code] can be used to escape a newline anywhere in C or C++ code, even in comments, strings, and preprocessor directives.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List