@Mazd, expressions won't work in switch cases. I just tried it.
Back on main Topic.
@freeze, that code won't work!
Firstly, you haven't specified the type for your argument 'grade'. I see that you are using float so, make it something like this
void letterGrade(float grade)
. Oh and you missed out the # before include<stdio.h>.
Secondly, your statement if(grade=90) assigns the value 90 to grade and will always equate to TRUE. Use the == operator not the assignment (=) operator.
I think you should try to use a nested if else and your code will never print "A" if the grade is above 90. Check line 5 to see why.
Thirdly, you might wanna re-think as to what this (grade<90||grade<80) or any of the below statements do.
Try to look at blackcoder41's sample code, if you still can't figure it out.
Lastly, check this thread
http://www.cplusplus.com/forum/beginner/1988/. It tells you a little something about using 'system("pause")'.