Raised This Month: $ Target: $400
 0% 

@TEAM


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 05-05-2005 , 21:06  
Reply With Quote #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!
xeroblood is offline
Send a message via MSN to xeroblood
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:36.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode