- 博客(5)
- 收藏
- 关注
原创 顺序表(动态)
一、声明与结构体定义:#include <stdio.h>#define Initsize 10#define false 0#define ture 1#define Elemtype inttypedef struct{ Elemtype* data; int Maxsize; int length;}Sqlist;二、初始化线性表(用malloc申请动态内存空间):void InitList(Sqlist &L)...
2022-05-08 15:03:05
306
原创 顺序表(静态)
一、声明与结构体定义:#include <stdio.h>#define false 0#define Maxsize 100#define Elemtype inttypedef struct{ Elemtype data[Maxsize]; int length;}Sqlist;二、初始化线性表:void InitList(Sqlist& L){ for (int i = 0; i < Maxsize; i++) L.data[i] =
2022-05-08 14:00:57
337
原创 C语言加法计算
#include <stdio.h>int main(){ int a, b, c; printf("请输入两个数字(请按回车确定)\n"); scanf_s("%d %d", &a, &b); c = a + b; printf("计算结果为:%d\n", c); return 0;}
2021-09-05 16:43:17
10637
原创 Hello World
#including <stdio.h>int main (){ printf("Hello World!"); return 0}
2021-09-05 16:22:30
143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人