[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppPreprocessorElse
This example shows a header file that is compatible under both C++ Builder and an STL console application.
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppPreprocessorElse
(C++) #else
Preprocessor statement having the same function as else.This example shows a header file that is compatible under both C++ Builder and an STL console application.
void sayHello() { ShowMessage("Hello World"); }
- ifdef VCL_H
void sayHello() { std::cout << "Hello World" << std::endl; }
- else
- endif
Code links
- ::, scope operator
- <<, stream out operator
- #endif
- cout
- #endif
- endl
- return
- scope operator, ::
- std
- stream out operator, <<
- void
- VCL ShowMessage
'#else' links
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
