catch (errors){
printf("Це не число. Спробуй ще раз\n");
return in_is_int();
} class IShape
{
public:
virtual Vector FarthestPointInDirection(Vector direction) = 0; // pure virtual function
};class Polygon : public IShape{
...
Vector FarthestPointInDirection(Vector direction) override{
....
}
};Vector support(IShape& a, IShape& b, Vector direction){
Vector aFar = a.FarthestPointInDirection(direction);
Vector bFar = b.FarthestPointInDirection(direction);
return *aFar.Sub(bFar);
} for (int i = 0; i < Reader_kol; i++)for (int i = totalReaderCnt; i < totalReaderCnt + Reader_kol; i++)