Computer Science Canada strings |
| Author: | Bob-o [ Sat Apr 19, 2003 1:19 pm ] |
| Post subject: | strings |
The only strings I know how to use are: string(1) string is there such thing as say string(10) if so how do you use it? |
|
| Author: | Blade [ Sat Apr 19, 2003 1:21 pm ] |
| Post subject: | |
in a string there's space for 256 characters... so by putting the (3) or even (50) beside it you are just limiting the amount of space for characters |
|
| Author: | Tony [ Sat Apr 19, 2003 1:22 pm ] |
| Post subject: | |
string(10) is a string thats 10 characters long. treat it as any other string, but you'll get an error if you try to assign a value larger then 10 (or whatever) number of characters. Its suppost ot save your memory as it is more efficient since it reserves memory only for 10 characters instead of 255 |
|
| Author: | Bob-o [ Sat Apr 19, 2003 1:24 pm ] |
| Post subject: | |
ok moving on then... know anything about the (open:stream, " ", get) code??? I can't get it to work |
|
| Author: | Tony [ Sat Apr 19, 2003 1:33 pm ] |
| Post subject: | |
I'd like you to get familiar with our tutorial section. With 30 tutorials now and more on the way, you can find answers to most of your questions there. -> http://www.compsci.ca/bbs/viewtopic.php?t=5 |
|