Почему классы не ловятся?
#include
#include
#include "Item.hpp"
#include "Fish.hpp"
#include "Boot.hpp"
#include "colors.h"
int main()
{
const int field_size = 9;
Item* field[field_size];
for (int i = 0; i < field_size; i++)
field = nullptr;
//Fish
int r = std::rand()%field_size;
srand(std::time(nullptr));
field[r] = new Fish();
std::cout
#include
#include
#include "Item.hpp"
#include "Fish.hpp"
#include "Boot.hpp"
#include "colors.h"
int main()
{
const int field_size = 9;
Item* field[field_size];
for (int i = 0; i < field_size; i++)
field = nullptr;
//Fish
int r = std::rand()%field_size;
srand(std::time(nullptr));
field[r] = new Fish();
std::cout