|
-
March 6th, 2008, 11:06 PM
#2
Re: Count Grades
You need to compare grade, which is a string, to other strings.
Code:
while (grade != -1)
That should be
Code:
while (grade != "-1")
And so on for the letters.
Also, a more logical keypress for the user to quit would be Q. -1 is thinking in programmer's terms, not end-user terms.
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
|