CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10

Threaded View

  1. #1
    Join Date
    Apr 2008
    Posts
    10

    Vector of Strings: help!

    I need to write a C++ program taking a vector of strings and separating out the words in each, storing them into a vector, but I don't know how. Could anyone help me please?


    Template Code:
    Code:
    vector <string> seperateWords (vector<string> lines) {
        vector<string > words;
        
        //Separating stuff goes here
    
        return words;
    }
    Thanks in advance!
    Last edited by assaf2b; April 12th, 2008 at 11:53 AM. Reason: Addition of Code tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured