I NEED HELP... joking... what's compile time expression?
Author |
Message |
JayLo
|
Posted: 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
|
|
|
|
|
|
|
Sponsor Sponsor
|
|
|
Catalyst
|
Posted: Thu May 15, 2003 7:50 pm Post subject: (No subject) |
|
|
something that is defined before the program runs i.e. not a var(technically defined when compiling begins)
is compile time |
|
|
|
|
|
Dan
|
Posted: Thu May 15, 2003 8:54 pm Post subject: (No subject) |
|
|
it whould seems that you can not use varibles in case staments
you should probley just uses an if |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
JayLo
|
Posted: Fri May 16, 2003 3:23 pm Post subject: (No subject) |
|
|
lol, the teacher wants a case construct |
|
|
|
|
|
|
|