Computer Science Canada

I NEED HELP... joking... what's compile time expression?

Author:  JayLo [ Thu May 15, 2003 7:38 pm ]
Post subject:  I NEED HELP... joking... what's compile time expression?

compile time expression?
what is it?
i'm getting that error in this situation.
code:

proc currentQuestion (province, capital : string, count : int)
    put province, "?"
    for i : 1 .. 3
        put "Guess ", i, " " ..
        get answer
        case answer of
            label rightAnswer (count) :
                exit
            label :
                put "no"
        end case
    end for
end currentQuestion

Author:  Catalyst [ Thu May 15, 2003 7:50 pm ]
Post subject: 

something that is defined before the program runs i.e. not a var(technically defined when compiling begins)
is compile time

Author:  Dan [ Thu May 15, 2003 8:54 pm ]
Post subject: 

it whould seems that you can not use varibles in case staments Confused

you should probley just uses an if Confused

Author:  JayLo [ Fri May 16, 2003 3:23 pm ]
Post subject: 

lol, the teacher wants a case construct Confused


: