how to handle inputs

Write here if you have problems with your C++ source code

Moderator: Board moderators

Post Reply
New poster
Posts: 2
Joined: Wed Jul 20, 2005 5:21 pm

how to handle inputs

Post by koenigin » Wed Jul 20, 2005 5:29 pm

Hi, newbie here...

I'm not sure I understand the "how to write your source code" post under the HOWTO forum ... it says that we're not allowed to open files, so how do we process multi-line inputs? Do we have to use scanf or can we use cin?

User avatar
Krzysztof Duleba
Posts: 584
Joined: Thu Jun 19, 2003 3:48 am
Location: Sanok, Poland

Post by Krzysztof Duleba » Wed Jul 20, 2005 5:44 pm

There are plenty of sample solutions available on problemset forums (usually with wrong algorithm, but anyway).

Both cin and scanf will work.

Post Reply

Return to “C++”