|
|
back to boardHow can i read input in C++ (my code doesn't work) int victim; while (scanf("%d", &victim) != EOF) { /*do something*/ } it is an infinite loop Re: How can i read input in C++ (my code doesn't work) Posted by mss175 8 Oct 2014 23:35 scanf returns: number of the read charecter in finish scanf return 0 but EOF value is -1 |
|
|