А ты не знаешь почему прототип функции выбивает ошибку?
прототип:
void storage(int A = NULL)
сама функция:
void storage(int A = NULL)
{
int PlantInfo[6];
const int _NumOfPlant = 50; // Лимит склада
int MaxPlants = 5;
int CurrentPlants = 0;
//Plant Arr[_NumOfPlant];
//int info = Arr[1].GetInfo();
if (CurrentPlants < MaxPlants)
{
for (int i = 0; i < 5; i++)
{
PlantInfo[i] = _pot.GetData()[i];
cout << "Добавлено: " << PlantInfo[i] << endl;
}
CurrentPlants = CurrentPlants++;
}
else
{
cout << "Переполнено" << endl;
}
}