char* strtok(char *str, char const *sep);
#include <iostream>
#include <cstring>
using namespace std;
int main() {
char a[101] = "1,2,3,4,5";
char *t;
for (t = strtok(a, ","); t != NULL; t = strtok(NULL, ",")) {
printf("%s \n", t);
}
return 0;
}