boki wrote:
> Dear All,
>
> Could you please tell me what is a "#" stand for in c++?
The '#' character is an indicator that a preprocessor
keyword is coming up.
> Why there is "#if 1" in program description?
>
> It go with "#endif"
The #if..#endif sequence allows the preprocessor to
remove blocks of source code before it is passed to
the compiler. Thus it can behave as an easy way
to "comment-out" blocks of code.
Many programmers use:
#if 0
/* code not compiled */
#endif
To comment out the code. If the programmer wants
the code to be compiled, the '0' is changed to
a '1':
#if 1
/* code is now compiled */
#endif
>
> Could you please explain it? thank you very much.
>
> Best regards,
> Boki.
Read up on preprocessor directives.
--
Thomas Matthews
C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq:
http://www.parashift.com/c++-faq-lite
C Faq:
http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book