Added word output
Этот коммит содержится в:
@@ -12,7 +12,8 @@ int main() {
|
||||
|
||||
const char* start = text;
|
||||
|
||||
while (true) {
|
||||
while (true)
|
||||
{
|
||||
|
||||
size_t separator_count = strspn(start, SEPARATORS);
|
||||
start += separator_count;
|
||||
@@ -21,6 +22,12 @@ int main() {
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
size_t word_length = strcspn(start, SEPARATORS);
|
||||
|
||||
std::cout.write(start, word_length) << std::endl;
|
||||
|
||||
start += word_length;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Ссылка в новой задаче
Block a user