Идентификатор E0020 «PROGSTART» не определен [закрыто]C++

Программы на C++. Форум разработчиков
Гость
Идентификатор E0020 «PROGSTART» не определен [закрыто]

Сообщение Гость »


Это код cpp. Я многое меняю, но могу исправить код. Пожалуйста, помогите мне.

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

void HandleOperator(char op, std::stack\&operandStack, std::stack\&operatorStack)
{

if (operandStack.size() < 2)
{
MessageBox(nullptr, L"Insufficient operands for the operation", L"Error", MB_OK | MB_ICONERROR);
PROGSTART();
return;
}

int operand2 = operandStack.top();
operandStack.pop();

int operand1 = operandStack.top();
operandStack.pop();

int result = 0;
switch (op)
{
case '+':
result = operand1 + operand2;
break;
case '-':
result = operand1 - operand2;
break;
case '*':
result = operand1 * operand2;
break;
case '/':
if (operand2 != 0)
{
result = operand1 / operand2;
}
else
{
MessageBox(nullptr, L"Cannot Divide by Zero", L"Error", MB_OK | MB_ICONERROR);
PROGSTART();
return;
}
break;
}

operandStack.push(result);

}
  • this ->PROGSTRAT();
two PROGSTART(); have errors.


Источник: https://stackoverflow.com/questions/781 ... ot-defined

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