12 2016 档案

摘要:#include #define N 30 char str[N]={NULL}; void Print(int i,char y); int st[N]; int t=0,k=0; struct node//定义一个队列 { char data; struct node * next; }; typedef struct node QueueNode; struct node2... 阅读全文
posted @ 2016-12-08 11:33 248黄迎迎 阅读(170) 评论(0) 推荐(0) 编辑
摘要:C程序语法(无左递归) —〉 | —〉 | | —〉 #include —〉 stdio.h丨stdlib.h丨string.h —〉 —〉 struct —〉 —〉|||& —〉||||& —〉 ||||& —〉 =A/A= A —> &|+|- —> 〉| —〉 + | - | * | / —〉 if else语句|switch语句||& —... 阅读全文
posted @ 2016-12-08 11:32 248黄迎迎 阅读(258) 评论(0) 推荐(0) 编辑
摘要:实验报告一 一、 实验目的 编制一个词法分析程序。 二、 实验内容和要求 输入:源程序字符串。 输出:二元组(种别,单词符号本身)。 三、 实验方法、步骤及结果测试 2.主要程序段及其解释: for(i=0;ch[i]!='\0';i++) { if((ch[i]=='+')||(ch[i]=='=')||(ch[... 阅读全文
posted @ 2016-12-08 11:29 248黄迎迎 阅读(122) 评论(0) 推荐(0) 编辑
摘要:C语言文法 程序->源程序|开始|结束 源程序 → 外部声明 | 子程序(外部声明) 文件头->函数 函数->库函数|函数主体|用户自定义函数 库函数->#include|#define... 函数主体->函数定义| 函数声明|语句串|选择结构 函数定义 → 函数类型(复合句)|变量 变量->标识符 标识符->英文字母|数字|下划线 英文字母->大写英文字母|小写英文字母 ... 阅读全文
posted @ 2016-12-08 11:25 248黄迎迎 阅读(100) 评论(0) 推荐(0) 编辑
摘要:#include #define N 30 char str[N]={NULL}; void Print(int i,char y); int st[N]; int t=0,k=0; struct node//定义一个队列 { char data; struct node * next; }; typedef struct node QueueNode; struct node2... 阅读全文
posted @ 2016-12-08 11:23 248黄迎迎 阅读(153) 评论(0) 推荐(0) 编辑