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

Username:   Password: 
 RegisterRegister   
 How to seperate strings that are over 255 characters?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
macaboo




PostPosted: Mon May 10, 2004 8:04 am   Post subject: How to seperate strings that are over 255 characters?

please help, i am getting the error message that my "Input string too large for string variable" so i need to know how to separate the strings if they are 255 characters long into multiple characters. please help
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Mon May 10, 2004 8:33 am   Post subject: (No subject)

code:

var cArray : flexible array 0..0 of char
var c:string(1)
loop
getch(c)
exit when ord(c) = 10 %exit when user presses enter
new cArray, upper(cArray)+1
cArray(upper(cArray)):=c
end loop

put "string is ", upper(cArray), " characters long"
for i:1..upper(cArray)
put cArray(i)..
end for


eh... I hope that works Confused
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  [ 2 Posts ]
Jump to:   


Style:  
Search: