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
This is a discussion on Problems with include? within the C Programming forums, part of the General Programming Boards category; if i have 2 header files and in the first file i use the second and in the second i ...
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
For information on how to enable C++11 on your compiler, look here.
よく聞くがいい!私は天才だからね! ^_^