Re: question about code comment
- From: Emmanuel Delahaye <emdelYOURBRA@xxxxxxx>
- Date: Sat, 05 Nov 2005 12:58:55 +0100
Ethan Meyers a écrit :
Hi everyone,
I want to handle the "/* */" style comment in a file, for example,
there are two programs in a file:
int main()
{int x;return 0;}
int main()
{int y;return 0;}
How to use other preprocess to comment out one of the main() rather
than using "/* */"?
If there are more code segments, is your solution still applicable?
#if 0 /* 0 or 1 */ int main() {int x;return 0;} #else int main() int y;return 0;} #endif
-- C is a sharp tool .
- References:
- question about code comment
- From: Ethan Meyers
- question about code comment
- Prev by Date: Re: stop output from apperaring from stdout and stderr
- Next by Date: Re: stop output from apperaring from stdout and stderr
- Previous by thread: Re: question about code comment
- Next by thread: Why C?
- Index(es):
Relevant Pages
|