官术网_书友最值得收藏!

User input

Allowing user input enhances the dynamic nature of a program. It is a good practice to query the user for file paths or values rather than explicitly writing this information into the code file. Therefore, if the user wants to use the same program on a separate file, they can simply provide a different path, rather than editing the source code. In most programs, users supply input and output locations or identify which optional features or modules should be used at runtime.

User input can be supplied when the program is first called or during runtime as an argument. For most projects, it is recommended to use command-line arguments because asking the user for input during runtime halts the program execution while waiting for the input.

主站蜘蛛池模板: 隆化县| 葫芦岛市| 沙坪坝区| 凤山市| 滦南县| 清苑县| 夏河县| 卫辉市| 吴堡县| 双峰县| 建宁县| 灵寿县| 威远县| 西乡县| 瑞金市| 砀山县| 松桃| 河源市| 通化县| 华蓥市| 嘉义市| 霞浦县| 隆安县| 盐城市| 万州区| 江川县| 交口县| 温宿县| 宿迁市| 赞皇县| 涞源县| 怀集县| 罗甸县| 周至县| 九台市| 财经| 汶川县| 和硕县| 新河县| 建昌县| 河北省|