-
一:需求分析
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
-
这个dll获取硬件信息进行哈希计算。它的出口…
对取得的硬件信息进行Hash的一个DLL,提供了对外的接口供调用-This DLL will get hardware information to make a hash calculation. It exports some interfaces to use.
- 2022-03-11 10:11:05下载
- 积分:1
-
VC of the game development process example, readers may use it for more complex...
VC实现的游戏开发程序实例,读者可利用它进行更为复杂的游戏程序开发。-VC of the game development process example, readers may use it for more complex game development.
- 2022-05-24 00:18:04下载
- 积分:1
-
单机,网络多人对战俄罗斯方块,内有详细设计说明
单机,网络多人对战俄罗斯方块,内有详细设计说明-standalone, network multiplayer Tetris, with detailed design specifications
- 2022-05-08 16:17:46下载
- 积分:1
-
用C++开发牌类网络,能和游戏大厅一起集成使用
用C++开发牌类网络,能和游戏大厅一起集成使用-network player develoment for c++
welcome ,and together
- 2022-11-20 01:20:03下载
- 积分:1
-
自动化代码
资源描述工厂产品测试自动化代码,包括机械手控制代码
- 2023-03-10 23:25:06下载
- 积分:1
-
商品信息管理系统,对大家的数据结构的课程设计很有帮助!
商品信息管理系统,对大家的数据结构的课程设计很有帮助!-commodity information management system for all of the data structure design courses helpful!
- 2023-09-07 06:45:03下载
- 积分:1
-
The East China Sea Lian
东海李莲中学网页源代码下载学习指导参考文件-The East China Sea Lian-school study guide website to download the source code reference document
- 2022-01-22 14:09:31下载
- 积分:1
-
Using Timers in MFC Applications在MFC应用程序中使用时间
Using Timers in MFC Applications在MFC应用程序中使用时间-Using Timers in MFC Applications in MFC applications using time
- 2022-08-19 08:24:45下载
- 积分:1
-
430学习书籍,好东西,希望大家下载
430学习书籍,好东西,希望大家下载-430 learning books, good things, I hope everyone downloads
- 2022-03-20 13:59:02下载
- 积分:1