【高分】请【英语】高手翻译下面文字!

来源:百度知道 编辑:UC知道 时间:2024/05/30 09:28:12
翻译的好,再加50分!
【要手工翻译,非机器的!】
1. Command line / Menu
Estimated time: 2h home work, 3h scheduled lab
You need to understand basic language constructs and input, output with scanf(), printf(), getchar(), putchar() etc.. Build a simple file. It is good if you can create a simple function.
Assignment 1
Create the start of our program for show-jumping competition administration. Do a command line and menu for the program. Your program should:
• Read a command from the user
• Depending on the command given execute different tasks
During the course of the labs you will add functionality to your menu. Thus you will gain from a design that make addition and modification of the program simple. To begin with your program will only recognize three commands that will:
• Print a list of the commands available (a menu)
• Print information about the program (program name, authors, copyright, year, version)
• Exit the

1。命令行/菜单
估计时间:2小时家庭作业(预习),3小时的预定上机操作
你需要懂得用scanf(), printf(),getchar(),putchar()等基本的建立和输入,输出语言来建立一个简单的文件。当然如果你能实现一个简单的功能就更好了。
任务1
为我们骑马越障表演比赛管理程序建一个开头程序。做一个命令行和命令菜单。你的程序应该能够:
..读取用户的命令
..根据所给的命令执行不同的任务
在计算机实验室课上你需要在你的菜单中添加功能。这样你就可以做一个能对简单程序进行添加和修改的设计了。一开始,你的程序需要能识别三种命令,这三种命令分别是:
..打印有效命令列表(菜单)
..打印程序信息(程序名称,作者,版权,版本)
..退出程序
至于菜单的外观和其他先进功能如何就是你看你自己了。一个简单的能够读取可选菜单条目的数字的命令行就足够了。(也许你只想在对此了解更多以后再来对此进行修改。)
如果你是一个初学者,建议一次解决一个问题。从一个只能打印菜单和退出的程序开始。再添加能够让用户输入和打印任何他们输入的内容的程序编码。接着再添加一些编码,使得程序能够根据用户输入的内容打印不同的东西。最后,让该程序循环而不是立刻就退出。
任务2
用你能够想到的所有稀奇古怪的输入内容来测试你的菜单。如果你输入文字和非数字会发生什么情况?如果的程序的用户在输入前或者输入后输入了许多空白和/或换行又会如何?如果用户按到CTRL+Z之后又会发生什么事情?
修复你的程序以便它不会崩溃,死机或者坏掉。

呵呵。看上去像计算机C语言的考试题。祝你好运。

你打这些英文也打得够辛苦的!

你这是课本上的吗?
是的,我帮你翻译