Код: Выделить всё
23
bruh
moment
24
bruh
moment
gym
Код: Выделить всё
int num = 0;
std::string bufferStr;
while (true)
{
I_tasksFile >> num;
if (!std::getline(I_tasksFile >> std::ws, bufferStr))
break;
if (num > 0)
tasksDay = num;
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78537088/c-file-input-getting-only-zeros-after-the-first-number[/url]
Мобильная версия