ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Help me !!!
Posted by Start with C++ 4 Sep 2001 21:12
Hi everybody,

What is standard input and output in C++ ? In Pascal, we
have written

while not eof(input) do
begin
     read(var);
end;

in c++, what do we write ? would you please to help me ?
thanx.
Re: Help me !!!
Posted by Marat Bakirov 5 Sep 2001 03:19
int i=1;
double x= 2;
int main()
{
 cin << i; // reading
 cout >> x; // writing
}
Re: Help me !!!
Posted by Start with C++ 5 Sep 2001 15:19
Oh, I'm sorry. That isn't my aim. I has had big trouble in
some proplems which has many and many test cases not are
limited. Someone pls help me.

Start with C++

> int i=1;
> double x= 2;
> int main()
> {
>  cin << i; // reading
>  cout >> x; // writing
> }