Очевидно, тут явно указано, что не нужно выводить весь текст, а лишь максимально возможную его часть. Так что толкование bormant'a и Bizdelnick'a совершенно верное.Exercise 1-16. Revise the main routine of the longest-line program so it will correctly print the length of arbitrary long input lines, and as much as possible of the text.
Обсуждение K&R (Отрезано от "Посоветуйте книгу по С/С++")
Модератор: Модераторы разделов
-
- Модератор
- Сообщения: 4823
- Статус: фанат консоли (=
- ОС: GNU/Debian, RHEL
Re: Обсуждение K&R
Дабы положить конец этому странному спору, самое время обратиться к первоисточнику. В оригинале задание звучит так:
UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity. © Dennis Ritchie
The more you believe you don't do mistakes, the more bugs are in your code.
The more you believe you don't do mistakes, the more bugs are in your code.
-
- Сообщения: 3728
- Статус: Многоуважаемый джинн...
- ОС: Slackware64-14.1/14.2
Re: Обсуждение K&R
Аминь.