+ 2

// comments after #define in C++

Should I use // comments after #define? #define forever for(;;) // When a compailer - every compailer! - cuts this comment out of my code? Perhaps I can use Python comments then #define # //

3rd Sep 2020, 2:23 PM
Sebastian Ahlborn
Sebastian Ahlborn - avatar
3 Respostas
+ 4
Comments are for yourself, not the compiler.
3rd Sep 2020, 2:46 PM
Sonic
Sonic - avatar
+ 2
Python comments don't work in C++
3rd Sep 2020, 2:45 PM
Sonic
Sonic - avatar
0
What do you expect the comments to do ? https://code.sololearn.com/coYCj75WqdsB/?ref=app
3rd Sep 2020, 5:06 PM
sneeze
sneeze - avatar