Obtain two strings to be sorted from an input source such as a file or user input.
从输入源(例如文件或用户输入)中获取要进行排序的两个字符串。
Since the portable collector runs in a text mode, there are no selection lists or entry fields for user input.
由于便携收集器以文本模式运行,因此没有用于进行用户输入的选择列表或输入字段。
The rules/inference engine is the part of the system that evaluates the rules based on the system state or user input.
系统中的规则/推论引擎根据系统状态或用户输入演算规则。
Notice in this program I have not checked whether or not the user actually provided input.
就拿这个程序说事吧,我们根本没有检查,用户到底有没有输入。
Even those of you who've taken AP computer science or something similar perhaps recall that even just getting a piece of input from the user is ridiculously not obvious.
你们中上了AP计算机科学这门课,或者类似的课程的人可能还记得,即使只是从用户那里得到一个输入,也相当麻烦。
I probably whip out a do while loop very rarely, but very often when programming games or any program that takes user input and has to check that user input and yell at the user if they're messing with you or aren't providing what's expected.
我可能很少用do,while,循环,但常常是,当编制程序游戏或需要用户输入的程序是,需要检查用户的输入并提醒用户,如果他们干扰了你,或没有提供所期望的输入。
应用推荐