|
-
June 20th, 2012, 03:55 AM
#21
Re: generic inheritance
 Originally Posted by oteel
I thought that this is putting #include files like h and cpp after #define and #ifndef ??? or I'm mistaken
No.
Just put the include file within the include guards. It makes no sense to have an include file, and some of it is sticking outside of the include guards -- plain and simple.
1>main.cpp(9): error C2143: syntax error : missing ';' before 'using'
1>main.cpp(9): error C2143: syntax error : missing ';' before '<end Parse>'
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So you cannot fix this error? At some point you'll have to take the lead and fix your own compiler errors. You can't just repeatedly get a compiler error and not know what to do.
What do you think is the problem?
Also, it would help if you placed your code in individual code blocks, and not have everything placed in a single code block. No one can tell what is an individual module, where one file starts and one file ends, etc... Then you don't need comments like this:
Code:
// array.h array.h array.h array.h
Regards,
Paul McKenzie
Last edited by Paul McKenzie; June 20th, 2012 at 03:59 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|