|
-
July 27th, 2010, 02:55 PM
#21
Re: Simple GradeSystem
 Originally Posted by Zeveso
I thought that it would first look at all the things above main() and then start the program. So long as it was above main then I would be fine. I will change that.
What I was trying to do was get the number and add all the numbers together and then average so I could give a grade.
I'm not really following you. It does look above main first. The problem you're having, at least with findLetter as I said is that you're using it before the compiler has seen it. You can either move it before you try to use it, or prototype it.
for(gradeNumer... doesn't make sense. The first part of a for loop lets you declare and initialize variables before the loop body. You're doing neither. You're not even using it in your loop.
Last edited by GCDEF; July 27th, 2010 at 02:57 PM.
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
|