如何使用C#控制台应用程序编写代码! [英] How to write codes using C# console application!

查看:197
本文介绍了如何使用C#控制台应用程序编写代码!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何设计具有三个级别的游戏:初学者,平均水平和专家水平;从单词中随机选择英文字符.

每个级别都有不同的单词集.

玩家获得一个猜对正确单词的分数,并且得分的总分数需要与每个正确猜出的单词一起更新.

经过的秒数应该显示在屏幕上,并且应该每秒更新一次.

如果玩家得分最高,则应将其姓名,得分和时间存储在文件中.

花费较少时间的玩家应被视为得分最高的持有者,并且他/她的凭据应存储在文件中.

每个级别的最高分数应单独存储.

How do you design a game with three levels: Beginner, Average and Expert; English characters are randomly picked from a word.

Each level has different set of words.

A player gets one mark for guessing the correct word and the total marks scored needs to be updated with each word guessed correctly.

The number of seconds elapsed should be displayed on the screen and should be updated every second.

If the player outscores the highest marks, his/her name, marks, and time should be, stored in a file.

The player who has taken less time should be considered as the highest score holder and his/her credentials should be stored in the file.

The highest scores for each level should be stored independently.

推荐答案

1.设计几种算法
2.编写一些代码
3.纠正不可避免的错误/错误
4.从2.开始重复,直到完成.
1. Devise several algorithms
2. Write some code
3. Correct the inevitable errors/bugs
4. Repeat from 2. until complete.


成为程序员的一部分是

0)能够分析给定的问题

1)编写满足要求的代码.

如果您无法执行项目0,那么您将无法执行项目1.
Part of being a programmer is

0) being able to analyze a given problem

1) Write code to fulfil the requirements.

If you can''t do item 0, you can''t possible do item 1.


这篇关于如何使用C#控制台应用程序编写代码!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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