Since this program can only display messages or run commands, it refuses to create an alarm that has neither a message nor a command.
因为此程序只能显示消息或运行命令,所以它拒绝创建既不是消息也不是命令的警报。
This program could naturally be extended to display an appropriate error message, which is explained next.
该程序可以被自然地扩展为显示适当的错误消息,我们在下一步将解释它。
Now, when a user enters 40 CC for the vehicle data, the program must display a message saying that the entry does not fall within the valid CC range. You can show the message simply as in Listing 1.
现在,当用户输入的车辆数据为40cc时,程序必须显示一条消息,说明输入的数据不在有效的CC范围内。
应用推荐