Thread: static_casting

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Green Member Cshot's Avatar
    Join Date
    Jun 2002
    Posts
    892
    That's cuz you didn't grab the return value from calculateGrade().

    >>calculateGrade(int score);
    float calculateGrade(int score);

    >>calculateGrade(int score){
    float calculateGrade(int score){

    >> calculateGrade(courseScore);
    grade = calculateGrade(courseScore);


    btw, is everyone here taking the same classes? Or are all professors just assigning the same homework assignments

    EDIT - I will always be one step of you Prelude! (pumps fist in air) Hehe jk, your way was better though. I didn't look at his calculateGrade function. Seen one too many today.
    Last edited by Cshot; 10-03-2002 at 04:21 PM.
    Try not.
    Do or do not.
    There is no try.

    - Master Yoda

Popular pages Recent additions subscribe to a feed