![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c语言数据结构
文章平均质量分 69
TX4qj
这个作者很懒,什么都没留下…
展开
-
凯撒密码c语言实现代码,小写字母后移三位,大写字母前移二位,如abCD转换为DEab,其他字符默认不转换
#include<stdio.h>void encode(char str[])//str为明文{ char a[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; char A[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P...原创 2022-04-15 10:14:20 · 3581 阅读 · 0 评论 -
c语言实现栈的增删改查
#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>#define MaxSize 50typedef struct{ int data[MaxSize]; int top;}Stack;bool Inits(Stack &s)//初始化栈,默认栈顶为-1,可以存50个元素。//如果MaxSize是50,那么他的数组空间就是0-49{ s.top = -1; return true;}...原创 2021-10-29 20:46:24 · 322 阅读 · 0 评论