/* testToken.cpp CIS 250 Dave Klick 4/18/05 Demonstration of tokenizing a string. */ #include #include using std::cout; using std::endl; int main(void) { char strIn[] = "This is my test string, isn't it?"; char delim[] = " ,\'\"\t-?!$%&*()_:;./\\"; char* p = strtok(strIn, delim); while (p != NULL) { cout << p << endl; p = strtok(NULL, delim); } return 0; }