Hello, please help me...
I have a problem with strtok
char a[5] = "1.2";
I get number "1" use printf("%s", strtok(a, "."));
but how to get number "2" with strtok ?
Simply put, it splits a string into tokens when the delimiter is reached. In this case, the delimiter is ".".
EDIT: I've answered your other post: http://www.cplusplus.com/forum/general/34976/
Last edited on