Ну че то типа такого вроде:
C++11:
double x = 1, y = 0.5;
bool Includes = false;
if (!(x > 1 || x < -1))
if (
(y >= 0 && y <= 1 && abs(x) <= y)
||
(y < 0 && y >= -2)
) Includes = true;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ну че то типа такого вроде:
C++11:
double x = 1, y = 0.5;
bool Includes = false;
if (!(x > 1 || x < -1))
if (
(y >= 0 && y <= 1 && abs(x) <= y)
||
(y < 0 && y >= -2)
) Includes = true;