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

Discussion of Problem 1001. Reverse Root

how we can use cin like scanf?[please answer]
Posted by mhg 2 Jul 2014 16:21
hi,
if we want to use cin in C++
how we can use it like below for scanf

while( scanf( "%lf", &m ) != EOF )

can we edit while( cin >> m != EOF )???
Re: how we can use cin like scanf?[please answer]
Posted by [RISE] Levon Oganesyan [RAU] 2 Jul 2014 17:28
cin >> m;
while ( m != EOF )
{
//something
cin >> m;
}