-
一:需求分析
1. 问题描述
魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两...
一:需求分析
1. 问题描述
魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的:
-----------------------------------------------------------
(1) a---> (B1)(B2)....(Bm)
(2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o]
-----------------------------------------------------------
在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把
他的话解释成人能听得懂的话.
2. 基本要求:
用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇.
(1) B --> tAdA
(2) A --> sae
3. 测试数据:
B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅".
| t | d | s | a | e | z | g | x | n | h |
| 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |
-one : a needs analysis. Problem description always use their own fiendish a very concise and abstract language speech Nobody can understand, but the language is gradually explained adult can understand the language, because his language is composed of the following two forms of
- 2022-09-04 11:50:02下载
- 积分:1
-
how to custom exceptions
how to custom exceptions
- 2022-01-30 18:55:51下载
- 积分:1
-
3d read format source programs (the French people to write C)
一段游戏开发读取3d格式的源码程式(法国人C++写的)-3d read format source programs (the French people to write C)
- 2023-08-14 09:55:02下载
- 积分:1
-
魔兽世界月光宝盒 感觉挺好,希望大家喜欢
魔兽世界月光宝盒 感觉挺好,希望大家喜欢
- 2022-07-08 02:49:21下载
- 积分:1
-
PC机与摄像机的串口通信,单片机用C8051F021
PC机与摄像机的串口通信,单片机用C8051F021-PC and camera serial communication, with C8051F021 MCU
- 2023-05-26 00:50:04下载
- 积分:1
-
efewfwefssdafsdaf
应用背景gdfgdfssgsafxfafaxdf jflksdj F ; ;hfkjd fdkh fkjldf DSF ;lldfjsldfulsdkhf ;fdshgf sdhgfsd ; ;hdgfdj FGD ; ; ; ; ; ; ; ; ; ; ;hgdfg dhfg SDHF ; ; ; ; ; ; ; ; ; ;dgfsdjfg sdkjfgsdlf ; ; ; ; ; ; ; ; ;及 ; ; ; ;kjdsfgksdjf kksdjf K关键技术sdgfsdgdfshdffshfds;ldgkl;SD G;LSG;;lgjsgj;LS ; ; ; ; ; ;;fgjldkfhg HJ汞hlgi耶;OL
- 2023-06-11 16:45:09下载
- 积分:1
-
本程序是基于灰色预测理论的灰色预测的算法实现
本程序是基于灰色预测理论的灰色预测的算法实现-This procedure is based on the gray gray prediction theory prediction algorithm
- 2022-05-20 05:15:48下载
- 积分:1
-
一个简单好好用的捕图片转换ico格式的小工具
一个简单好好用的捕图片转换ico格式的小工具-a simple catch a good picture of ico format conversion tool for the small
- 2022-04-21 07:52:07下载
- 积分:1
-
用户输入0
用户输入0-127之间的数,输出其对应的ascii码的符号-user input between the 0-127 number, the output of their counterparts ascii code symbols
- 2022-08-18 18:19:21下载
- 积分:1
-
制作C语言程序的图片源码工具,需要安装注册!使用方便
制作C语言程序的图片源码工具,需要安装注册!使用方便-The production of C language programming of the picture source tools, need to install the register! Easy to use
- 2022-08-12 11:18:47下载
- 积分:1