nazerke
11/30/2019 - 12:18 PM

include guard

#ifndef __INCLUDE_A
define __INCLUDE_A

#include "includeB.h"

struct structA {
    int member;
};
#endif
#ifndef __INCLUDE_B
define __INCLUDE_B

#include "includeA.h"

struct structB {
    int member;
};
#endif
#include <cstdio>
#include "includeA.h"

int main() {
    puts("Hello, World!");
    return 0;
}