摘要: 目录顺序队列--循环队列sequeue.hsequeue.ctest.c链式队列linkqueue.hlinkqueue.ctest.c 顺序队列--循环队列 sequeue.h #define N 5 typedef int data_type; typedef struct{ data_type 阅读全文
posted @ 2023-10-15 21:49 扬帆去远航 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 目录线性表-栈-顺序存储sqstack.hsqstack.ctest.c线性表-栈-链式存储linkstack.hlinkstack.ctest.c 线性表-栈-顺序存储 sqstack.h typedef int data_type; typedef struct { data_type * da 阅读全文
posted @ 2023-10-15 01:35 扬帆去远航 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 目录linklist.hlinklist.ctest.c linklist.h #include <stdio.h> typedef int data_type; typedef struct node{ data_type data; struct node * next; // 此时结构体的名字 阅读全文
posted @ 2023-09-24 20:35 扬帆去远航 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 目录sqlist.hsqlist.ctest.c sqlist.h #include <stdio.h> #define N 128 typedef int data_type; typedef struct { data_type data[N]; int last; }sqlist; // 创建 阅读全文
posted @ 2023-09-21 20:40 扬帆去远航 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 目录结构体共用体typedef内存管理 结构体 结构体的定义及变量使用 #include <stdio.h> #include <string.h> struct student { char name[20]; int age; char sex; }stu3; // 定义结构体的同时定义结构体变 阅读全文
posted @ 2023-09-08 20:34 扬帆去远航 阅读(46) 评论(0) 推荐(0) 编辑
摘要: [TOC] ## 函数基本用法 - 举例:两数求和 ```c #include int sum(int, int);// 函数的声明,函数的原型 int main(int argc, char const *argv[]) { int m = 10; int n = 20; int s; s = s 阅读全文
posted @ 2023-09-03 15:53 扬帆去远航 阅读(45) 评论(0) 推荐(0) 编辑
摘要: [TOC] ### 指针 - 前置概述:在计算机内存中最小的操作单元是字节Byte(不是位bit)。每一个字节单元,都有一个编号,称为地址。 - 指针定义:专门用来存放地址的变量,称为`指针变量,通称指针`。 - 格式:` *` ```c int a = 10; int * p; p = &a; / 阅读全文
posted @ 2023-09-03 15:51 扬帆去远航 阅读(26) 评论(0) 推荐(0) 编辑
摘要: [toc] ## 变量与常量 常量: - 定义:常量就像是常规的变量,只不过常量的值在定义后不能进行修改。 - 在 C 中,有两种简单的定义常量的方式: - 使用 #define 预处理器: #define 可以在程序中定义一个常量,它在编译时会被替换为其对应的值。 - 使用 const 关键字:c 阅读全文
posted @ 2023-07-30 02:30 扬帆去远航 阅读(67) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/m0_52312677/article/details/121868656 https://www.cnblogs.com/zhangziqiu/archive/2011/03/30/ComputerCode.html https://www.zhihu. 阅读全文
posted @ 2023-07-17 16:47 扬帆去远航 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 进制转换: https://blog.csdn.net/m0_61231111/article/details/124432295 进制对照表: ![](https://img2023.cnblogs.com/blog/2431420/202307/2431420-20230714094717126 阅读全文
posted @ 2023-07-14 09:48 扬帆去远航 阅读(32) 评论(0) 推荐(0) 编辑