Using C++ STL String Tokenizer - strtok() function

preview_player
Показать описание
Functioning and syntax of C++ STL String Tokenizer - strtok() function, recorded by Prateek Bhayia from Coding Blocks. In the next video you will learn about how to implement a String Tokenizer function on your own. The function uses a 'static' pointer variable to maintain the state of string in the previous call.
Рекомендации по теме
Комментарии
Автор

Far better than your course classes. Please teach same on both Platforms

simr
Автор

Please explain why we use null instead of str

prameela
Автор

why did we used null instead of str???

yashpriyadeepkatta
Автор

the background noise is unbearable in this video

DJMoniker
Автор

give example to implement strtok_s function in c

KumarK-kcbz
Автор

I suffered a lot in trying to understand what you were saying

djamelbgd
Автор

will you plz explain me that how strtok work as static variable ?

palakgupta
Автор

Can anyone explain to me what the below for loop does and how it works please?
void tokenize(char *line, char **words, int *nwords)
{
*nwords=1;
for(words[0]=strtok(line, " \t\n");
(*nwords<MAX_WORDS)&&(words[*nwords]=strtok(NULL, " \t\n"));
*nwords=*nwords+1
); /* empty body */
return;
}

iamthejustin
Автор

What about the implementation?video link for the implementation?

himanshughai