What is a token?

When I split a sentence into tokens using strtok, what type is token? String, char, or? After splitting the sentence, I'm trying to check the first letter of every word to see if it's a number. Any ideas?
A token is a string representing a meaningful piece of text.

For example, the C++ text int x = 12 + 3; splits into seven tokens:
int,x,=,12,+,3, and ;.

Likewise, the CSV record Riker,William,"Frakes, Johnathan",commander,1701-D splits into five tokens: Riker,William,Frakes, Johnathan,commander, and 1701-D.

Some further reading on strtok():
http://www.cplusplus.com/faq/sequences/strings/strtok/

Hope this helps.
Topic archived. No new replies allowed.