Почему следующий код переходит в бесконечный цикл?C++

Программы на C++. Форум разработчиков
Anonymous
Почему следующий код переходит в бесконечный цикл?

Сообщение Anonymous »

Рассмотрим приведенный ниже код:

Код: Выделить всё

#include 

using namespace std;

class Buffer {
public:
static const int BufferSize=5;
Buffer() {
for(this->index=0;this->indexindex+=1) {
BufArr[this->index]=0;
cout

Подробнее здесь: [url]https://stackoverflow.com/questions/79283790/why-is-the-following-code-going-into-an-infinite-loop[/url]

Вернуться в «C++»