|
|
вернуться в форумHow 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) Послано mss175 8 окт 2014 23:35 scanf returns: number of the read charecter in finish scanf return 0 but EOF value is -1 |
|
|