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

Username:   Password: 
 RegisterRegister   
 I think it's rather weird
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
theinquisitor




PostPosted: Sun Mar 25, 2012 9:49 am   Post subject: I think it's rather weird

I finished a program called compint, it needs to use procedure to calculate the balance . But after I ran it, it did the job, i mean it did everything it supposed to do, and then the window just disappeared, and it says "Variable has no value"
Sponsor
Sponsor
Sponsor
sponsor
ihsh




PostPosted: Sun Mar 25, 2012 10:29 am   Post subject: RE:I think it\'s rather weird

This means that your program crashed because you tried accessing a variable that hasn't been assigned a value yet.

For example, try running the following program:
code:

var a:int
put 2
put a

It will give you the same message because you haven't assigned a a value, yet you are trying to access it.
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  [ 2 Posts ]
Jump to:   


Style:  
Search: