"include" question!

17/11/2003 - 21:06 por Anonimo | Informe spam
//a.h file
#include "b.h"
class C1
{
//
}

//b.h file
#include "a.h"
class C2
{
//...
}

Can I include per .h fileseach other in a project just like above example?
 

Leer las respuestas

#1 Swin
17/11/2003 - 09:33 | Informe spam
No.

Do it:

//a.h file
#ifndef A_H
#define A_H
#include "b.h"
class C1
{
//
}
#endif //A_H

//b.h file
#ifndef B_H
#define B_H
#include "a.h"
class C2
{
//...
}
#endif //B_H

escribió en el mensaje
news:
//a.h file
#include "b.h"
class C1
{
//
}

//b.h file
#include "a.h"
class C2
{
//...
}

Can I include per .h fileseach other in a project just like above example?


Preguntas similares