logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
ronenfe  
#1 Posted : Monday, January 18, 2010 4:43:57 AM(UTC)
ronenfe

Rank: Administration

Groups: Administration
Joined: 11/22/2008(UTC)
Posts: 175

1. in the header files try to use forward declaration instead of includes, like: class A;
2. in the header file include standard libraries first, like #include <string.h>
3. in the cpp file repeat the includes in the header and add more as needed.
4. always use #ifndef B
#define B

at the beginning of the header
and #endif
at the end of the header.
Users browsing this topic
Similar Topics
How to include header files in c++ (Discoveries and Solutions)
by ronenfe 1/18/2010 4:43:57 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.