09 2023 档案
摘要:目录linklist.hlinklist.ctest.c linklist.h #include <stdio.h> typedef int data_type; typedef struct node{ data_type data; struct node * next; // 此时结构体的名字
阅读全文
摘要:目录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; // 创建
阅读全文
摘要:目录结构体共用体typedef内存管理 结构体 结构体的定义及变量使用 #include <stdio.h> #include <string.h> struct student { char name[20]; int age; char sex; }stu3; // 定义结构体的同时定义结构体变
阅读全文
摘要:[TOC] ## 函数基本用法 - 举例:两数求和 ```c #include int sum(int, int);// 函数的声明,函数的原型 int main(int argc, char const *argv[]) { int m = 10; int n = 20; int s; s = s
阅读全文
摘要:[TOC] ### 指针 - 前置概述:在计算机内存中最小的操作单元是字节Byte(不是位bit)。每一个字节单元,都有一个编号,称为地址。 - 指针定义:专门用来存放地址的变量,称为`指针变量,通称指针`。 - 格式:` *` ```c int a = 10; int * p; p = &a; /
阅读全文