User forums > Using Code::Blocks
if using //, it showed " error: expected expression before '/' token "
osdt:
--- Quote from: gary8520 on January 31, 2014, 07:03:09 am ---(this is the first time I heard that // is not proper comment in C :o )
--- End quote ---
Compile for at least C99 to make them valid (gcc option --std=c99).
--- Quote from: gary8520 on January 31, 2014, 07:03:09 am ---I just want to skip some section of my code temporarily.
--- End quote ---
You may want to use #if 0 to temporarily skip parts of the code:
--- Code: ---#if 0
puts("this will be skipped"); /* comment */
...
#endif
--- End code ---
- osdt
Navigation
[0] Message Index
[*] Previous page
Go to full version