Hello,
I need to write a function that would take a string and break it up into tokens (ie words, numbers, and punctuation). First it needs to break up the string and store them into an array called Token[]. Obviously a for loop needs to written however should I just make the rest into if statements breaking it up.
bool getToken(char Block[], char Token[], int &TokenType, &pos);
{
for (i = 0; i < strlen(Block); i++)
{
if (Block [i] == ' ')
continue;
else if ((Block[i] < 'z' && Block[i] > 'a') || (Block[i] < 'Z' && Block[i] > 'A'))
for (j = 0; j )
strcpy(Token[j], )
}
}