Пример #1
0
PassengerClass CRoomFlags::whatPassengerClass(int floorNum) {
	if (is2To19(floorNum))
		return FIRST_CLASS;

	return is20To27(floorNum) ? SECOND_CLASS : THIRD_CLASS;
}
Пример #2
0
int CRoomFlags::whatPassengerClass(int floorNum) {
	if (is2To19(floorNum))
		return 1;

	return is20To27(floorNum) ? 2 : 3;
}