Sp˙rL
April 25th, 2009, 10:30 PM
Ive split the class into a seperate .h and .ccp for the implementation of things.
I have the class definition in the .h and thats the only time I use the key word class as Im obviously creating a class.
I coded these originally in notepad (lol), but since have run it through Dev-C++ (4.9.9.2). I fixed a majority of the errors that were bound to be in it, however I have this error that it keeps throwing at me during build-time saying:
line 13: redefintion of 'class Details'then below that error it has:
line 13: previous definition of 'class Details'as you can see.. the apparent redefinition is actually the original definition of the class. It also happens to be the only definition.. Can anyone explain whats going on here?
If possible, can I get clarification on how to properly include the seperate .h and .ccp files and which files need #include statements and the #ifndef statements, as I dont think Im 100% on what should be where.
Thanks guys.
I have the class definition in the .h and thats the only time I use the key word class as Im obviously creating a class.
I coded these originally in notepad (lol), but since have run it through Dev-C++ (4.9.9.2). I fixed a majority of the errors that were bound to be in it, however I have this error that it keeps throwing at me during build-time saying:
line 13: redefintion of 'class Details'then below that error it has:
line 13: previous definition of 'class Details'as you can see.. the apparent redefinition is actually the original definition of the class. It also happens to be the only definition.. Can anyone explain whats going on here?
If possible, can I get clarification on how to properly include the seperate .h and .ccp files and which files need #include statements and the #ifndef statements, as I dont think Im 100% on what should be where.
Thanks guys.