954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

string to array

hi,

i would like to convert a string into an array.

ex.

string = "i love c++";


array[1] = "i";
array[2] = "love";
array[3] = "c++";

can somebody help me pls?

thanks alot

Zazabazulla
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

http://www.sgi.com/tech/stl/basic_string.html
Research which member functions could be used for finding spaces and extracting sub-strings.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You