Search found 1 match

by MeNFolkS
Sun Jun 03, 2007 5:39 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 318984

How to terminate the input

I'v been tryin out problem number 100, n the problem i'v been havin is in terminating the input.....
problems statement says tht each test case would be in a new line...like
10 100
20 200

nw how to terminate tht....

i thought this would work

while ( !feof ( stdin ) )
{
cin >> a; cin >> b ...

Go to advanced search