Well, I wonder HOW to make an explode() function from PHP in C++
For those who don't know.
explode($separator, $string) breaks given $string through given $separator
$string = "Hello world!"; $result = explode(" ", $string); echo $result; //IT will give us HELLO word echo $result; //IT will give us WORLD! word
Each word is put into the array and has own index.
now... have someone any idea how to make it in C++ ?
Do not show any examples from this forum.
I already saw all and all are bad (doesn't match to the requirements)