Hi,
Ive got a similar problem, it seems a run of the mill thing to break a string into tokens yet its kept me head scratching for days, is there another option or is it a simple code tweaking problem.
Fairly new to C/C++ but ive been coding in C# for nearly 4 years and never had such a simple function issue.
Any advice guys would be great, oh and its my first post so play fair...
char *list[200];
int a;
char *allocate;
char phrase[500];
main() {
cin >> phrase;
allocate = strtok(phrase," ");
while (allocate != NULL)
{
for( a = 0; a < 10; a++);
{
list[a] = allocate;
}
}