社区
community_281
帖子详情
请推荐关于编译原理的书??(Flymouse)
Flymouse
2001-11-07 04:24:58
请各位推荐几本编译原理的书!!(最好市面上能买到的)
我看见过机械出的一本<<编译原理....>>,不知好不好??
...全文
163
7
打赏
收藏
请推荐关于编译原理的书??(Flymouse)
请各位推荐几本编译原理的书!!(最好市面上能买到的) 我看见过机械出的一本<>,不知好不好??
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
lanying
2001-11-23
打赏
举报
回复
大家好,小弟这两天正在学编译原理,遇到难题,特像各位大虾求救
/****************************************
这是文法的产生式
使用递归下降语法分析,先消除左递归
Z::=AcB¦Bd
A::=AaB¦c
B::=aA¦a
****************************************/
#include "stdio.h"
char str[]="caaca";
int i=0;
void Z();
void A();
void B();
void ShowErr();
main()
{
Z();
printf("Right!\n");
}
void Z()
{
switch(str[i])
{
case 'c':
A();
if (str[i]=='c'){
i++;
B();
}else{
ShowErr();
}
break;
case 'a':
B();
if (str[i]=='d'){
i++;
}else{
ShowErr();
}
break;
default:
ShowErr();
}
}
void A()
{
if (str[i]=='c'){
i++;
while(str[i]=='a'&&str[i]!='\0')
{
i++;
B();
}
}
else{
ShowErr();
}
}
void B()
{
if (str[i]=='a'){
i++;
if (str[i]=='c')
A();
}else{
ShowErr();
}
}
void ShowErr()
{
printf("Error!\n");
exit(0);
}
longvacation_zw
2001-11-16
打赏
举报
回复
同意milky(),西工大的那本书确实好!
hh
2001-11-15
打赏
举报
回复
陈火旺的书怎么样?
milky
2001-11-15
打赏
举报
回复
西工大的《编译原理》也不错。而且听说很快要出配套习集
ewang_365
2001-11-14
打赏
举报
回复
清华大学出版的《编译原理》也不错!很适合学习用。
lanying
2001-11-14
打赏
举报
回复
北京航空航天大学出版的,估计买不到了
还有陈火旺编的国防科技大出的书
study_vc
2001-11-07
打赏
举报
回复
《编译原理与程序构造》记不清哪个出版社了
poj图论题目汇总
不敢说最全的,但是包含了多数poj图论题目汇总,一点一点打上去的负伤的是题目的类型,相当全面,挣点分不过分吧……
WOJ:Problem 1045 -
Fly
mouse
?s Poor English
字符串处理,对每一个字符串做两种处理即可: 1. 句首字母大写 2. 单词内部字母小写(第一个字母忽略) 可能要注意的就是,因为你在打输入句子数目t的时候,还要加一句getline(cin,s),因为打完t然后回车,回车会当做一个空字符串输入到s中。 #include #include #include using namespace std; int main(){ int t;
POJ 3160 Father Christmas
fly
mouse
Father Christmas
fly
mouse
Time Limit: 1000MS Memory Limit: 131072KTotal Submissions: 3804 Accepted: 1256DescriptionAfter retirement as contestant from WHU ACM Team,
fly
mouse
volunteered to do the odds ...
L - Father Christmas
fly
mouse
来源poj3160 After retirement as contestant from WHU ACM Team,
fly
mouse
volunteered to do the odds and ends such as cleaning out the computer lab for training as extension of his contribution to the...
POJ:3160-Father Christmas
fly
mouse
Father Christmas
fly
mouse
Time Limit: 1000MS Memory Limit: 131072K Description After retirement as contestant from WHU ACM Team,
fly
mouse
volunteered to do the odds and ends such as cleaning ou
community_281
675
社区成员
253,708
社区内容
发帖
与我相关
我的任务
community_281
提出问题
复制链接
扫一扫
分享
社区描述
提出问题
其他
技术论坛(原bbs)
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章