• 博客园logo
  • 会员
  • 周边
  • 众包
  • 新闻
  • 博问
  • 闪存
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






JT3895

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2021年12月7日

3.20
摘要: 1 #include<stdio.h> 2 typedef struct{ 3 int x,y; 4 int color; 5 }element; 6 typedef struct{ 7 element DArray[50][50];//二维数组本身不能存储其下标,故要用结构体记录其下标 8 int 阅读全文
posted @ 2021-12-07 23:58 JT3895 阅读(32) 评论(0) 推荐(0)
 
3.19
摘要: 3.19 假设一个算术表达式中可以包含三种括号:圆括号“( ”和“ )”、方括号“[”和“]”及花括号“{”和“}”,且这三种括号可按任意的次序嵌套使用。编写判别给定表达式中所含括号是否正确配对出现的算法(已知表达式已存入数据元素为字符的顺序表中)。 1 #include<stdio.h> 2 ty 阅读全文
posted @ 2021-12-07 23:16 JT3895 阅读(125) 评论(0) 推荐(0)
 
3.17
摘要: 1 #include<stdio.h> 2 typedef struct{ 3 char array[50]; 4 int top,rear; 5 }DoubleStack; 6 void Create(DoubleStack*S) 7 { 8 char e; 9 S->top=0,S->rear= 阅读全文
posted @ 2021-12-07 23:11 JT3895 阅读(122) 评论(0) 推荐(0)
 
3.16
摘要: 1 #include<stdio.h> 2 typedef struct{ 3 int array[50]; 4 int top; 5 }SeqStack; 6 void Inite(SeqStack*S) 7 { 8 S->top=-1; 9 } 10 int Pop(SeqStack*S) 11 阅读全文
posted @ 2021-12-07 23:10 JT3895 阅读(25) 评论(0) 推荐(0)
 
3.15
摘要: 1 #include<stdio.h> 2 typedef struct{ 3 int array[50]; 4 int top,rear; 5 }DoubleStack; 6 void Create(DoubleStack*S) 7 { 8 int n,i; 9 scanf("%d",&n); 1 阅读全文
posted @ 2021-12-07 23:08 JT3895 阅读(47) 评论(0) 推荐(0)