CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 37

Threaded View

  1. #21
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,637

    Re: Simple GradeSystem

    Quote Originally Posted by Zeveso View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured