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日
摘要: #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日
摘要: #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) 编辑