我有问题,你知道。因此,在Draw()函数中(最后是右边),score1有一个问题,它必须是整数,但是C ++将其定义为标识符。请不要提及俄语注释,它们仅用于项目。
#include <conio.h>
using namespace std;
void Setup() {
//Инициализация геймовера
gameOver = false;
//инит управления
dir = STOP;
//инит позиции
x = width / 2 - 1;
y = height / 2 - 1;
//инит рандомайзера расположения фруктов
fruitX = rand() % width;
fruitY = rand() % height;
//инит данных
int scorel = 1;
int score = 0;
}
void Draw() {
system("cls");
}
cout << endl;
}
for (int i = 0; i < width + 1; i++) {
cout << "#";
}
cout << endl;
cout << "uroven: ";
cout << uroven;
// **Here is the error**
cout << " schet: ";
cout << score;
}