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

Please hep me , how to read EOL ?(+)
Posted by N.M.Hieu ( DHSP ) 27 Jun 2006 12:30
Here is my code which got Crash :
...
char ch ;
while ( (ch = getc(stdin) != '\n' ) a[n++] = ch - 48 ;
...
So I had to change into string.
Someone knows how to read EOL please help me.
I'm a C++ beginner.
Thanks.