if i have 2 header files and in the first file i use the second
and in the second i use the first?
but it's not allowed
how to solve that??
Thank's
if i have 2 header files and in the first file i use the second
and in the second i use the first?
but it's not allowed
how to solve that??
Thank's
The "easiest" solution is to remove the "other" header from the "main" header file. Or if you would rather, do this:
At the top of each header file do this for each one --
#ifndef SOME_HEADER_H (this would be your header file's name)
#define SOME_HEADER_H
.
.
.
.
#endif