|
|
back to board1001 how to know when there are no more inputs Re: 1001 Posted by fahim- 24 Dec 2025 20:08 Just use a while loop like this: while( cin >> a ) and then push_back it in a vector and output the solution. Re: 1001 Posted by Egor 24 Feb 2026 00:58 while (scanf("%lf", &stack[++top]) != EOF); or while ((tmp = getchar()) != EOF) |
|
|