Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
// Vector for safe (de)allocation of char* that might hold \0:s
std::vector tmpBuffer;
tmpBuffer.reserve(strlen(inputString)+1);
char *szBuffer = &tmpBuffer[0];
strcpy(szBuffer, inputString);
const char* token = strtok(szBuffer, " \t\r\n");
while (token!=0)
{
// do something with token...
token = strtok(0," \t\r\n");
}
string file,line,word;
ifstream in("words.txt");
while(in >> word)
// do something with word