Home

kamistrike@gmx.de wrote:

> Furthermore headerfiles are often intersected with some additional pre-
> processor directives:
>
> MyClass.h:
>
> #IFNDEF MYCLASS_H
#ifndef MYCLASS_H
> #DEFINE MYCLASS_H
#define MYCLASS_H
>
> class MyClass
> {
> public:
> int Foo()
> bool Bar()
>
> }
>
> #ENDIF
#endif
>

#ifndef, #define, and #endif are *LOWER CASE*

Their usage in this case is known as "include guards". Google for it,
or search this group, or both.

previous
next

Re: Emacs + python
Re: PyS60
Re: how to I recast pointer to n-dim array in C++?
RE: Setting stdout encoding
Re: Important Research Project
Akogo
Mam Marzenie
Rodzic Po Ludzku
Fundacja Avalon
Dzieci Niczyje