¡@

Home 

c++ Programming Glossary: split1

Why is splitting a string slower in C++ than Python?

http://stackoverflow.com/questions/9378500/why-is-splitting-a-string-slower-in-c-than-python

#include time.h #include vector using namespace std void split1 vector string tokens const string str const string delimiters.. one of the two implementations per compilation obviously split1 spline input_line split2 spline input_line count count subtract.. lps endl else cerr endl return 0 compiled with g Wall O3 o split1 split_1.cpp Note that I tried two different split implementations...