摘要: 1、概念: 数据项:最小单位 数据对象:相同性质的数据元素集合 数据结构:关系 集合 同样的数据元素可组成不同的数据结构不同数据元素也可以组成相同的数据结构 2、三要素: 逻辑结构:集合(不考)线性结构:一对一树形:一对多图、网:多对多 数据运算 基本运算:增删改查 物理结构(存储):数据元素的逻辑 阅读全文
posted @ 2022-07-27 23:51 Tityaaaa 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 补一下之前的笔记: 今日:str!!~~~ 然后还有gets 和 puts 和一些基础的东西 strlen:统计字符串长度 strcpy:将某个字符串赋值到字符数组中 strcat:拼接字符串 int main() { char c[20]="tity"; printf("%d", strlen(c 阅读全文
posted @ 2022-07-27 23:07 Tityaaaa 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 作业: #include <stdio.h> #include<string.h> int main(){ char s[100]; gets(s); int len; len = strlen(s); for(int i=0;i<len-1;i++){ printf("%c\n",s[i]); } 阅读全文
posted @ 2022-07-27 23:07 Tityaaaa 阅读(34) 评论(0) 推荐(0) 编辑