J
josh
hi all,
If I have an interfacce file i.e. Time.h (where inside it I've #ifndef/
#define / #endif directives) and then an implementation file i.e.
Time.cpp in which I include Time.h and then a client file i.e. Test.cpp
in which I include again Time.h I undtestand that the directives
#ifndef/ #define / #endif make to insert one time only the file but
I must anyway to include Test.h in Test.cpp for using the class I
defined in Time.h else the compiler can't resolve the name......
so I'm very confused..please help me
If I have an interfacce file i.e. Time.h (where inside it I've #ifndef/
#define / #endif directives) and then an implementation file i.e.
Time.cpp in which I include Time.h and then a client file i.e. Test.cpp
in which I include again Time.h I undtestand that the directives
#ifndef/ #define / #endif make to insert one time only the file but
I must anyway to include Test.h in Test.cpp for using the class I
defined in Time.h else the compiler can't resolve the name......
so I'm very confused..please help me