Welcome to Dream.In.Code
Become a C++ Expert!

Join 150,053 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,729 people online right now. Registration is fast and FREE... Join Now!




Directives of preprocessers question

 
Reply to this topicStart new topic

Directives of preprocessers question

c--
3 Feb, 2008 - 02:46 PM
Post #1

New D.I.C Head
*

Joined: 26 Jan, 2008
Posts: 27

Why's it important to include #ifndef and #define before a class??


User is offlineProfile CardPM
+Quote Post

Tom9729
RE: Directives Of Preprocessers Question
3 Feb, 2008 - 03:02 PM
Post #2

Debian guru
Group Icon

Joined: 30 Dec, 2007
Posts: 1,592



Thanked: 12 times
Dream Kudos: 325
My Contributions
So you don't get "already defined" errors if that header file is included more than once.
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 1/8/09 10:20PM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month