miredirex / oop-course

Объектно-ориентированное программирование
0 stars 0 forks source link

Замечания по программе Car #7

Open alexey-malov opened 4 years ago

alexey-malov commented 4 years ago
2>C:\teaching\oop-labs\zaharov\oop-course\Task3\Car\src\EnumUtil.cpp(35): warning C4715: 'MoveDirectionToString': not all control paths return a value
2>C:\teaching\oop-labs\zaharov\oop-course\Task3\Car\src\EnumUtil.cpp(22): warning C4715: 'GearToString': not all control paths return a value
alexey-malov commented 4 years ago
alexey-malov commented 4 years ago
alexey-malov commented 4 years ago
Info
Car: started
Car move direction: forward
Speed: 20
Gear: neutral
SetGear -1
Gear has been successfully set <------------ WAT?
Info
Car: started
Car move direction: backward
Speed: 20
Gear: reverse
alexey-malov commented 4 years ago
EngineOn
Car has been started
SetGear -1
Gear has been successfully set
SetSpeed 20
Unable to set speed
SetSpeed 10
Unable to set speed
SetSpeed -10
Car speed has been set to -10
alexey-malov commented 4 years ago
Car speed has been set to -20
SetGear 0
Gear has been successfully set
SetGear -1
Gear has been successfully set
alexey-malov commented 4 years ago