Код: Выделить всё
1
2
3
4
Код: Выделить всё
ifstream myfile("file.dat");
int n, i;
int myarray[30];
if (!myfile) {cerr n;
myarray[i] = n;
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78663694/while-true-loop-executing-once-more-after-break-statement-when-reading-file[/url]