I have some question about header files(I’m talking about c, but I think it will be the same for c++), let’s assume I have some my_ADT.c file (inside I have implementation of the functions and actual struct) and also my_ADT.h inside I have pointer for my struct
Question: if I use ADT Set for implementation my_ADT do I need to include set.h to both files my_ADT.h and my_ADT.c or including only to my_ADT.h will be sufficient (inside my_ADT.c I have #include "my_ADT.h") thanks in advance
I have some question about header files(I’m talking about c, but I think it
Share
If
my_ADT.his included in themy_ADT.cfile, then you should includeset.honly inmy_ADT.h.