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

Username:   Password: 
 RegisterRegister   
 how to separate parts of a string
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
BeepBeepLettuce




PostPosted: Thu Nov 23, 2017 3:53 pm   Post subject: how to separate parts of a string

so i have a long string of data and the different parts that i need are separated by commas
something like "Beep,Boop,1234567,12,23,34,45,56,67,78"

i want to break this string into an array of strings
array(1) "Beep"
array(2) "Boop"
array(3) "1234567"
array(4) "12"
array(5) "23"
etc

i know how to do this using for loops but i was wondering if there was an easier way to separate everything between the commas
kind of like .split in java
Sponsor
Sponsor
Sponsor
sponsor
TokenHerbz




PostPosted: Mon Dec 04, 2017 3:46 am   Post subject: RE:how to separate parts of a string

those are moduals that make it simple to do, you can write your own with ease.

this link should help you with some concepts.

http://wiki.compsci.ca/index.php?title=Turing_String_Manipulation
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: