Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 strings
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Bob-o




PostPosted: 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?
Sponsor
Sponsor
Sponsor
sponsor
Blade




PostPosted: Sat Apr 19, 2003 1:21 pm   Post subject: (No 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
Tony




PostPosted: Sat Apr 19, 2003 1:22 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Bob-o




PostPosted: Sat Apr 19, 2003 1:24 pm   Post subject: (No subject)

ok moving on then...

know anything about the (open:stream, " ", get) code??? I can't get it to work
Tony




PostPosted: Sat Apr 19, 2003 1:33 pm   Post subject: (No 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 5 Posts ]
Jump to:   


Style:  
Search: