Hi!
Here i wrot a little program to split a cpp string into tokens without getline.
The several tokens will save in a vector of cpp strings. After this done
the several vectors are converted into integer values
first header strwork.h:
example to split a cpp string into tokens
Here i wrot a little program to split a cpp string into tokens without getline.
The several tokens will save in a vector of cpp strings. After this done
the several vectors are converted into integer values
first header strwork.h:
Code:
#ifndef STRWORK_INC_ #define STRWORK_INC_ 1 #include <iostream> #include <stdlib.h> //atoi EXIT_SUCCESS #include <string.h> // strcpy, strtok #include <vector> #include <sstream> // stringstream #include <complex.h> std::string showchar(int...