Computer Science Canada

I think it's rather weird

Author:  theinquisitor [ 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"

Author:  ihsh [ 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.


: