C++ :: String Tokenization - Moving Pointer Ahead
Jul 5, 2014
I know there is strtok() to do the tokenization;but all strtok() examples I have seen only output one token at a time, moving the pointer ahead. Can't the tokens be saved somewhere?
View 6 Replies
Jun 13, 2014
i want to make moving button or moving box clickable as i am making a game in which i move picture boxes and user clicks on it and his scores increases. but i was unable to do so , so i tried the same concept with buttons but no results.
View 7 Replies
View Related
Nov 28, 2013
I have created a program which does tokenization to the whole line. The basic idea is if you have this ***HELLO%%SIR.
Then you have 8 tokens (2 words + 6 symbols). My algorithm is the following :
BEGIN OF THE LOOP
IF CHARACTER IS NOT AN ALPHABETIC LETTER
INCREASE THE COUNTER OF ITEMS ONE TIME
INCREASE THE COUNTER OF ARRAY ONE TIME
END IF
[Code] ....
And here is the implementation :
[C] C Words Tokenizer - Pastebin.com
First of all it is not an exercise from university. It is my reflection. What is your opinion about that exercise? It is useful? Tokens must be only the words between delimiters? I am analyzing the whole line.
Secondly I want to print the symbols and the words I don't want to use strtok to do this because I think that function line_tokenizer will not reusable due to strtok and the fact that puts the '