Re: General Beginner Issues

new topic     » goto parent     » topic index » view thread      » older message » newer message
Kirkkaf13 said...

[3]Can someone explain how I can declare a string variable, is this using sequence?

Thank you for your time and I apologise if my questions are very basic.

Kirk

Yes, a string is just a sequence of letters. There are many ways to define strings, but the most basic way is with double quotes:

include std/io.e 
 
sequence my_string = "Hello, world!" 
writefln("[]", my_string) 
new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu