hi everyone,
i just ran a little test program, but got no output from two cout lines (commented out below) - i traced through it, and saw them get skipped. why is that? (they're not commented out when i run it)
Code:
#include <string.h>
#include <iostream.h>
void main () {
char str[] = " avg: real; {dgjhd;a comment}";
// cout << str << "\nits length: " << strlen(str) << endl;
char *brokenstr;
cout << "remaining part of string: ";
brokenstr = strtok (str,"{");
cout << brokenstr;
// cout << "\nits length: " << strlen(brokenstr);
return;
}