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

翻译的好,再加50分!【要手工翻译,非机器的!】1.Commandline/MenuEstimatedtime:2hhomework,3hscheduledlabYoun... 翻译的好,再加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 program
It is your choice how the menu should look and how advanced it should be. A simple command line that reads the number of the menu item to select is sufficient. (Although you may want to modify such solution later on when you learned more).
If you are a beginner, solve one problem at a time. Start with a program that just print a menu and exit. Add code that asks for user input and print whatever the user entered. Add more code so the program print different things depending on what the user entered. At last, make the program repeat itself instead of exiting immediately.
Assignment 2
Test your menu with as much and as weird input you can figure out. What happen if you enter characters and not digits? What if the user of your program put lot of blanks and/or newlines before or after the input? What happens if the user hit CTRL-Z?
Fix your program so that it seems impossible to crash, hang or otherwise corrupt.
展开
kexianchao
2008-10-08 · TA获得超过3677个赞
知道大有可为答主
回答量:1221
采纳率:0%
帮助的人:1373万
展开全部
1。命令行/菜单
估计时间:2小时家庭作业(预习),3小时的预定上机操作
你需要懂得用scanf(), printf(),getchar(),putchar()等基本的建立和输入,输出语言来建立一个简单的文件。当然如果你能实现一个简单的功能就更好了。
任务1
为我们骑马越障表演比赛管理程序建一个开头程序。做一个命令行和命令菜单。你的程序应该能够:
..读取用户的命令
..根据所给的命令执行不同的任务
在计算机实验室课上你需要在你的菜单中添加功能。这样你就可以做一个能对简单程序进行添加和修改的设计了。一开始,你的程序需要能识别三种命令,这三种命令分别是:
..打印有效命令列表(菜单)
..打印程序信息(程序名称,作者,版权,版本)
..退出程序
至于菜单的外观和其他先进功能如何就是你看你自己了。一个简单的能够读取可选菜单条目的数字的命令行就足够了。(也许你只想在对此了解更多以后再来对此进行修改。)
如果你是一个初学者,建议一次解决一个问题。从一个只能打印菜单和退出的程序开始。再添加能够让用户输入和打印任何他们输入的内容的程序编码。接着再添加一些编码,使得程序能够根据用户输入的内容打印不同的东西。最后,让该程序循环而不是立刻就退出。
任务2
用你能够想到的所有稀奇古怪的输入内容来测试你的菜单。如果你输入文字和非数字会发生什么情况?如果的程序的用户在输入前或者输入后输入了许多空白和/或换行又会如何?如果用户按到CTRL+Z之后又会发生什么事情?
修复你的程序以便它不会崩溃,死机或者坏掉。

呵呵。看上去像计算机C语言的考试题。祝你好运。
51966857
2008-10-08 · 超过24用户采纳过TA的回答
知道答主
回答量:176
采纳率:0%
帮助的人:0
展开全部
你打这些英文也打得够辛苦的!
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
崔湛隽02j
2008-10-08 · TA获得超过1.1万个赞
知道答主
回答量:560
采纳率:0%
帮助的人:0
展开全部
你这是课本上的吗?
是的,我帮你翻译
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(1)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式