|
-
June 12th, 2012, 03:24 PM
#8
Re: What is wrong with my code organization?
Paul,
 Originally Posted by Paul McKenzie
You're all over the place here.
First, are you doing this off the top of your head, or are you following guidelines set by experienced C++ programmers? If it's the former and not the latter, then you're going to create a mess.
I followed a stackoverflow guide: http://stackoverflow.com/questions/1...variables-in-c . I removed the extern declaration in "objects.h" if that is what you were concerned about.
 Originally Posted by Paul McKenzie
Also, the issue is not whether the code will compile -- the issue is whether the code will link. That is where improper use of extern will cause errors, at the link stage, not the compile stage.
I figured as much on this part though the errors follow after
Output:
I will try again with the format you gave me
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
|