Skip to content

liujiang833/container_ref

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Syntax Lookup

Table of Content

Containers

Useful Functions

Vector

Java C++ Python

split-string-C++

Here is a quick way to do string splitting in c++ using STL. Then you don't need to use find that can get you astray.

vector<string> mysplit(string&s, char delimiter){
    vector<string> res;
    istringstream ss(s);
    string hold;
    while(getline(ss,hold,delimiter)){
       res.push_back(move(hold)); 
    }
    return res;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors