 |
|
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
|

05-05-2005
, 21:06
|
#7
|
Yeah, it is kinda weird in Small C..
If the string is: @TERRORIST
Then:
[0] == '@'
[0] == "@TERRORIST"
[1] == 'T'
[1] == "TERRORIST"
[2] == 'E'
[2] == "ERRORIST"
etc..
Notice the different use of quotes? With single-quotes, a single character is implied, with double-quotes a string is implied..
However, the string functions expect strings, so always use double-quotes when passing arguments to them..
When used as a string, the index simple denotes the starting point of the string...
I hope that makes sense for ya!
|
|
|
|