05 2020 档案

摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "math.h" 4 5 typedef struct demo 6 { 7 int* base; 8 int* top; 9 int stacksize; 10 }sqstack; 11 1 阅读全文
posted @ 2020-05-23 21:42 季风的杜萨 阅读(150) 评论(0) 推荐(0)
摘要:1 #include "stdio.h" 2 #include "stdlib.h" 3 4 #define MAXSIZE 100 5 typedef struct 6 { 7 int* sqelem; 8 int length; 9 int listsize; 10 }sqlist; 11 12 阅读全文
posted @ 2020-05-17 22:34 季风的杜萨 阅读(283) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include "string.h" 4 5 #define MAXSIZE 100 //定义顺序表最多存储多少元素 6 //定义一个静态顺序表结构体 7 typedef struct 8 { 9 int s 阅读全文
posted @ 2020-05-16 21:59 季风的杜萨 阅读(197) 评论(0) 推荐(0)
摘要:公鸡5钱一只,母鸡3钱一只,小鸡1钱三只; 要用一百钱要买100只鸡,问公鸡、母鸡、小鸡个多少只? 由于只有100文钱,则5x<100 => 0<x<20, 同理 0<y<33,那么z=100-x-y 第一种方法: 1 #include <stdio.h> 2 3 int main() 4 { 5 阅读全文
posted @ 2020-05-15 12:02 季风的杜萨 阅读(165) 评论(0) 推荐(0)