|
|
@ -12,7 +12,8 @@ int main() {
|
|
|
|
|
|
|
|
|
|
|
|
const char* start = text;
|
|
|
|
const char* start = text;
|
|
|
|
|
|
|
|
|
|
|
|
while (true) {
|
|
|
|
while (true)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
size_t separator_count = strspn(start, SEPARATORS);
|
|
|
|
size_t separator_count = strspn(start, SEPARATORS);
|
|
|
|
start += separator_count;
|
|
|
|
start += separator_count;
|
|
|
@ -21,6 +22,12 @@ int main() {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
size_t word_length = strcspn(start, SEPARATORS);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::cout.write(start, word_length) << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
start += word_length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
return 0;
|
|
|
|