Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 I NEED HELP... joking... what's compile time expression?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
JayLo




PostPosted: 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
Sponsor
sponsor
Catalyst




PostPosted: 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




PostPosted: Thu May 15, 2003 8:54 pm   Post subject: (No subject)

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

you should probley just uses an if Confused
Computer Science Canada Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more!
JayLo




PostPosted: Fri May 16, 2003 3:23 pm   Post subject: (No subject)

lol, the teacher wants a case construct Confused
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: