in every header file it is a good idea to use inclusion guards. so to stop it from getting defined all the time just put
#ifndef RANDOMC_H
#define RANDOMC_H
// all the code in randomc.h goes here
#endif
this will make sure that the file is only included the first time and every other time #include "randomc.h" is encountered the compiler will skip that file because it is already defined. I've found this makes things easier down the road and saves some debugging time.
Reputation Points: 215
Solved Threads: 186
Veteran Poster
Offline 1,066 posts
since Apr 2009