- 博客(8)
- 收藏
- 关注
原创 山大一道考研题,将数组中偶数放在奇数前。记录下
#include <stdio.h>#include <stdlib.h>int judge(int a);int testsrry[10] = {1,242,0,5,34,67,32,12,34,3};void swap(int *a,int b);/ run this program using the console pauser or add your o...
2020-02-03 20:52:43 104
原创 一个书上的递归习题
#include <stdio.h>#include <stdlib.h>#define MaxSize 100struct digui{int n;int f;int tag; }St[MaxSize];int test(int m);/* run this program using the console pauser or add your own...
2020-01-22 18:33:29 97
原创 数据结构学习之---栈的应用(中缀表达式转后缀)
#include <stdio.h>#include <stdlib.h>#define MaxSize 200struct yun{ char data[MaxSize]; int top; };/* run this program using the console pauser or add your own getch, system("pa...
2020-01-15 13:52:38 91
原创 数据结构学习之线性表
主要记录两个算法1.从数组创建链表2.寻找链表倒数第k个结点#include <stdio.h>#include <stdlib.h>#define ElemType int/* run this program using the console pauser or add your own getch, system(“pause”) or input loo...
2020-01-08 17:55:48 76
原创 数组最小两数的C语言代码
在这里插入代码片#include <stdio.h>#include <stdlib.h>#include<math.h>int translate(char *s);int a[10] = {3,34,2,425,1,425,242,5,6324,-5}; /* run this program using the console pauser o...
2019-12-11 09:12:08 297
原创 关于结构体指针的错误
这里写自定义目录标题一、错误类型 访问结构体指针的指针时(a为一个结构体指针的指针,用a访问成员),提示请求的结构体成员未找到[Error] request for member ‘k’ in something not a structure or union二、解决方法:将a改为(*a)即先将二级指针的值计算出来...
2019-09-18 18:24:51 618
原创 代码
|int main(int argc, char *argv[]) {int i,j;//循环变量int **arr = NULL;arr = alloc_arry(3,4);int **af=alloc_arry(4,3);Matrix ceshi;for (i=0;i<3;i++){for (j=0;j|–|--|| | |
2019-07-02 17:35:19 67
原创 MASM32的环境变量配置及使用教程
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Ma...
2019-07-02 17:29:03 1470 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人