ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Общий форум

HELP ME,PLS...1102
Послано Vladimir Milenov Vasilev 28 июл 2002 17:59
Hi!
When reading string from the standart input character by character,
how can I stop reading it and go to the next line of the input..
I mean, when I understand the answer is "NO", I don't need to read
the whole string, as the answer will be the same, I just want to go
to the next line and proceed with the next string.
How to do This?
Thanks in advice :)
Re: HELP ME,PLS...1102
Послано Andrey Popyk (popyk@ukr.net) 29 июл 2002 16:48
while not eoln(INPUT) do
begin
  ...
  ...
  if NO then break;
  ...
end;

if not eoln(INPUT) then readln;

Re: HELP ME,PLS...1102
Послано Vladimir Milenov Vasilev 29 июл 2002 22:21
Thank you verry much, but I am using C++...
Do you know how it will be there?
cin.ignore(10000,'\n')
Послано Andrey Popyk (popyk@ukr.net) 31 июл 2002 14:56