
-----------------------------------
y1234yy
Sun Mar 15, 2009 1:14 pm

constants
-----------------------------------
Hi 

I am having some trouble with constants. Do the values of constants have to be number or can it also be a string?

I am trying to output this, but turing said that "Hi" is not declared.

const x := Hi
put x

Am I using the const function wrong?

-----------------------------------
Tony
Sun Mar 15, 2009 1:20 pm

RE:constants
-----------------------------------
I think you are looking for

const x : string := "Hi"
put x


-----------------------------------
y1234yy
Sun Mar 15, 2009 1:23 pm

Re: constants
-----------------------------------
oh right, you need the quotations

Thanks for remind me  :D
