如何在C#中生成代码 [英] How Do I Generate Code In C#

查看:104
本文介绍了如何在C#中生成代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当客人到达时,代客将接受或记下以下详细信息并将其输入程序:

•名称

•车牌

然后程序将为汽车分配一个停车位并将其记录为该人/汽车所占用的。

当客人准备离开时,代客将取得他们的名字或许可证车牌号码和程序将使用这些详细信息进行搜索,并告诉代客车辆所在的停车位。

一旦车辆返回客人,代客可以再次按名称搜索车辆,车牌号或停车位号码,并告诉程序该车已经退回,停车位现在是免费的。

程序应该是一个控制台应用程序,其菜单提供以下选项:

•处理客人抵达

•寻找停放的汽车

•汽车返还给用户

•列出停放的所有汽车

•退出计划



对不起我只是编程c#的初学者。

When a guest arrives, the valet will take or note the following details and enter them into the program:
• Name
• Licence Plate
The program will then assign a parking space for the car and record it as taken by that person/car.
When a guest is ready to leave, the valet will take either their name or licence plate number and the program will search using those details and tell the valet which parking space the car is in.
Once the car has been returned to the guest, the valet can again search for the car by name, licence plate or parking space number and tell the program that the car has been returned and the parking space is now free.
The program should be a console application, with a menu offering options for:
• Handling guest arrival
• Finding a parked car
• Car returned to user
• List all cars parked
• Exit program

Sorry Im just a beginner at programming c#.

推荐答案

我们不做你的作业:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



如果你遇到某个特定的部分然后告诉我们你的尝试以及你被困在哪里 - 但我们不打算这样做它适合你!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you get stuck on a particular part then tell us what you tried and where your are stuck - but we aren't going to do it for you!


这篇关于如何在C#中生成代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆