What's the usage of #ifdef and #endif in the code below?
#ifdef C_DEF
class C
{
public:
void Repair();
};
void C::Repair () {
....
}
#endif
Since I understand using like:
#ifdef C_DEF
class C
{
public:
void Repair();
};
#endif
void C::Repair () {
....
}
Thanks!
#ifdef C_DEF
class C
{
public:
void Repair();
};
void C::Repair () {
....
}
#endif
Since I understand using like:
#ifdef C_DEF
class C
{
public:
void Repair();
};
#endif
void C::Repair () {
....
}
Thanks!
Comment