codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  how to pass a string to a vector?  malcom at 10:05 on Monday, May 23, 2005
 

hi all, i have a string of doubles delimted by a + sign like the following example:

string s = "711.5082+733.50+749.47";

i want to loop through the string and pass every double into a vector (not including the + sign). Can you show me how to do this.

I might want to add more numbers or even change the + delimeter to something else, can anyone help at all.
Thank you


  Re: how to pass a string to a vector?  Zefiras at 15:30 on Monday, May 23, 2005
 

Using the function s.Split(yourstring,"+")?








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Problem with concatenation
•  how to genrates the crystal report by sending a id at runtime
•  help me
•  pls help me with this..
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007