![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
DataStructure Guide
RaySunWHUT
I am a coder and at the same time, I am a writer.
自认国学初窥门径,写文章胜过写程序。
个人主页: https://raysunwhut.github.io/
展开
-
Data Structure Guide: 实验案例2-2:数组元素循环左 / 右移
题目 将数组元素循环左右移动固定单位。 实验代码: #include<stdio.h> #include<stdlib.h> #include<math.h> #include "Header.h" #pragma warning(disable:4996) int main() { int n, bit; int direction; int a[20] = { 0 }; scanf("%d%d", &n, &bit); for原创 2020-06-14 10:19:26 · 776 阅读 · 0 评论 -
Data Structure Guide: 实验案例 2-1: 简单计算器
题目: 模拟简单计算器,运算符无优先级,遇 ‘=’ 结束,非法输入符号报错! 实验代码: #include<stdio.h> #include<stdlib.h> #include<math.h> #include "Header.h" #pragma warning(disable:4996) void errorReport(char* string) { printf("%s", string); } int main() { char symbol原创 2020-06-14 09:47:01 · 377 阅读 · 0 评论