会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
lie隼
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
下一页
2015年10月28日
快速排序以及二分查找的实现
摘要: #include int BinSearch(int a[],int left,int right,int key);//声明二分查找void QuickSort(int a[],int left,int right);//声明快速排序int main(){ int a[101]; in...
阅读全文
posted @ 2015-10-28 10:57 lie隼
阅读(158)
评论(0)
推荐(0)
编辑
2014年6月12日
编译原理词法分析程序
摘要: #include #include#include#include#includeusing namespace std;#define MAX 22char ch =' ';string key[15]={"switch","break","if","then","else","while","...
阅读全文
posted @ 2014-06-12 09:21 lie隼
阅读(364)
评论(0)
推荐(0)
编辑
2014年6月5日
06_05_词法分析
摘要: #include#include#include#define keywordSum 11char Scanin[300],Scanout[300]; //用于接收输入输出文件名FILE *fin,*fout;//用于指向输入输出文件的指针char *keyword[keywordSum]={ "...
阅读全文
posted @ 2014-06-05 09:39 lie隼
阅读(148)
评论(0)
推荐(0)
编辑
2014年2月11日
顺序队列的基本操作
摘要: #include #include //#include #define MAXSIZE 100#define OK 1#define TRUE 1#define FALSE 0#define ERROR 0//using namespace std;typedef struct{ int d...
阅读全文
posted @ 2014-02-11 21:56 lie隼
阅读(899)
评论(0)
推荐(0)
编辑
2013年11月1日
使用默认参数的构造函数
摘要: #include using namespace std;class Box{public: Box(int h=10,int w=10,int len=10); int volume();private: int height; int width; int leng...
阅读全文
posted @ 2013-11-01 17:16 lie隼
阅读(238)
评论(0)
推荐(0)
编辑
2013年10月9日
基于顺序栈的进制转换
摘要: #include #include #define M 10typedef struct //定义一个顺序栈{ int data[M]; int top;}SqStack;void InitStack(SqStack &st)//创建一个栈{ st.top=-1;}int Pu...
阅读全文
posted @ 2013-10-09 09:36 lie隼
阅读(374)
评论(0)
推荐(0)
编辑
2013年9月13日
C语言之大数相加
摘要: #include#includeint main(){ int f; int i,an,bn,k; char a[1000],b[1000]; int af[1000]={0},bf[1000]={0},c[1000]; while(scanf("%s%s",a,b)!=EOF) //输入字符串...
阅读全文
posted @ 2013-09-13 17:34 lie隼
阅读(949)
评论(0)
推荐(0)
编辑
2013年8月24日
输入一个年输出其天干地支纪年法的表达式
摘要: #include #include using namespace std;char *day_name1(int x){ static char *name[20]={"Gui","Jia", "Yi", "Bing", "Ding", "Wu", "Ji", "Geng", "Xin", "Re...
阅读全文
posted @ 2013-08-24 11:23 lie隼
阅读(420)
评论(0)
推荐(0)
编辑
2013年8月15日
队列的链式存储及其基本运算
摘要: #include #include #define QueueSize 10typedef struct Qnode //链队列的定义{ char data; struct Qnode *next;}Qtype; //链队中节点类型typedef s...
阅读全文
posted @ 2013-08-15 15:42 lie隼
阅读(356)
评论(0)
推荐(0)
编辑
队列的顺序存储及其基本操作
摘要: #include #include #define QueueSize 10typedef struct{ char data [QueueSize]; int front,rear;}SqQueue;void InitQueue(SqQueue &qu) //初始化队列{ qu...
阅读全文
posted @ 2013-08-15 09:57 lie隼
阅读(379)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
下一页