07 2018 档案

C语言中的输入方式
摘要:在c语言中,有gets()、scanf()、getchar()等输入方式,但是不同的方式处理的方式不同。 scanf()读取时遇见tab、space、enter时会结束读取,不会舍弃最后的回车符(即回车符会残留在缓冲区中); getchar()在以enter结束读取,并且不会舍弃结尾的enter g 阅读全文

posted @ 2018-07-31 08:39 妄想症T 阅读(1343) 评论(0) 推荐(0) 编辑

c语言实现栈的增删查减
摘要:#include"stdio.h"#include"stdlib.h"#define STACK_SIZE 100#define STACKINCREMENT 10typedef struct{int *base;int *top;int stacksize;}Stack;//初始化int Init 阅读全文

posted @ 2018-07-22 16:12 妄想症T 阅读(276) 评论(0) 推荐(0) 编辑

单向链表增删查
摘要:#include"stdio.h"#include"stdlib.h"typedef struct node{int e;struct node *next;}*NNode;//初始化 NNode InitList(NNode L){ NNode head=NULL; head=(NNode)mal 阅读全文

posted @ 2018-07-20 19:22 妄想症T 阅读(224) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示