摘要: 1 #include <iostream> 2 #include<string> 3 using namespace std; 4 5 int Isleap(int y,int m,int d)//四年一润,百年不润,四百在润。 6 { 7 if(( y%4 == 0) && (y%100 != 0 阅读全文
posted @ 2020-12-07 22:59 buhuishuoyingyu 阅读(614) 评论(0) 推荐(0)
摘要: #include <iostream> using namespace std; int count_word(char *p) { int a[10][10] = {0}; int i = 0,j = 0,s; int m,n = 0,flag = 0;//flag记录单词数。 while(*p! 阅读全文
posted @ 2020-12-07 12:59 buhuishuoyingyu 阅读(769) 评论(0) 推荐(0)
摘要: #include<iostream>using namespace std;#define MAXSIZE 100#define OK 1#define ERROR 0#define OVERFLOW -2 typedef int ElemType;typedef int Status; //1、创 阅读全文
posted @ 2020-04-02 13:10 buhuishuoyingyu 阅读(166) 评论(0) 推荐(0)
摘要: //顺序栈 #include<iostream>using namespace std; #define MAXSIZE 100#define OK 1#define ERROR 0#define Status int#define SElmType int#define OVERFLOW -2// 阅读全文
posted @ 2020-03-30 23:24 buhuishuoyingyu 阅读(640) 评论(0) 推荐(0)
摘要: //顺序栈#include<iostream>#include<string>using namespace std; #define MAXSIZE 100 //栈的最大容量struct SqStack{ int *base;//栈底指针 int *top;//栈顶指针 char sign[MAX 阅读全文
posted @ 2020-03-29 13:06 buhuishuoyingyu 阅读(373) 评论(0) 推荐(0)