- 博客(7)
- 收藏
- 关注
原创 C语言数据结构——两顺序单链表的合并
#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef int ElemType;typedef struct Node{ElemType data;struct Node *next;}Node,*LinkList;LinkList CreateList(int n){Li...
2019-05-05 22:35:26 1021 3
原创 C语言数据结构——串的链式存储
#include<stdio.h>#include<stdlib.h>typedef int Status;typedef struct{char *ch;int length;}HString;Status Get(HString &S){printf(“请输入长度:”);scanf_s("%d",S.length);printf(“请输入...
2019-05-05 21:55:16 1043
原创 用栈实现十进制转二,八,十六进制
#include<stdio.h>#include<stdlib.h>#include<malloc.h>#define STACK_INIT_SIZE 100;#define STACKINCREMENT 10;typedef int SElemType;typedef int Status;typedef struct{SElemType ...
2019-05-05 21:54:56 1179
原创 C语言数据结构——单链表的增删改查
#include<stdio.h>#include<stdlib.h>#include<malloc.h>typedef int ElemType;typedef int Status;typedef struct LNode{ElemType data;struct LNode *next;}LNode,*LinkList;Status G...
2019-04-01 13:20:43 773
原创 printf & scanf(二)
scanf() 是C语言中的一个输入函数。与 printf 函数一样,都被声明在头文件stdio.h里,因此在使用scanf函数时要加上 #include <stdio.h> 。(在有一些实现中,printf函数与scanf函数在使用时可以不使用预编译命令#include <stdio.h>。)它是格式输入函数,即按用户指定的格式从键盘上把数据输入到指定的变量之中。sca...
2018-12-01 16:33:13 138
原创 printf & scanf(一
输入输出函数(printf 和 scanf)是C语言中非常重要的两个函数,也是学习C语言必学的两个函数。在C语言程序中,几乎没有一个程序不需要这两个函数,尤其是输出函数(printf),所以这两个函数必须要掌握。如果在程序中要使用 printf 或者 scanf,那么就必须要包含头文件 stdio.h。因为这两个函数就是包含在该头文件中的。printf的原型extern int printf...
2018-11-25 17:17:15 405
原创 初识"C"
什么的程序程序:为了让计算机执行某些操作或解决某个问题而编写的一系列有序指令的集合记住这个:程序=算法+数据结构**C语言入门C语言一经出现就以其功能丰富、表达能力强、灵活方便、应用面广等特点迅速在全世界普及和推广。C语言不但执行效率高而且可移植性好,可以用来开发应用软件、驱动、操作系统等。C语言也是其它众多高级语言的鼻祖语言,所以说学习C语言是进入编程世界的必修课。**Hello ...
2018-11-10 10:12:03 142 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人