上一页 1 2 3 4 5 6 7 8 9 ··· 36 下一页

2021年8月26日

摘要: 1.栈 2.循环队列 3.基本二叉树 4.基本二叉树进阶 栈 stack.h #pragma once typedef struct tag{ int m_val; struct tag *pNext; }Node_t,*pNode_t; typedef struct { pNode_t phead 阅读全文
posted @ 2021-08-26 17:08 lodger47 阅读(21) 评论(0) 推荐(0)
摘要: #include <iostream> union data{ int i; char c; float f; }; enum weekday{sun,mon,tue,wed,thu,fri,sat}; int main() { union data a; // 联合体,共用体所有成员共用一块空间 阅读全文
posted @ 2021-08-26 15:47 lodger47 阅读(20) 评论(0) 推荐(0)

2021年8月24日

摘要: struct Student{ int num; char name[20]; char sex; int age; float score; char addr[30]; }; void demo() { struct Student s={1001,"lele",'M',20,98.5,"Sha 阅读全文
posted @ 2021-08-24 17:11 lodger47 阅读(28) 评论(0) 推荐(0)
摘要: goto介绍 利用了goto和if语句来实现了循环功能,它与while实现的循环功能一样 int day = 1; loop: if (day <= 31) { printf("%d\n", day); day++; goto loop; } setjmp,longjmp介绍 #include <s 阅读全文
posted @ 2021-08-24 10:38 lodger47 阅读(65) 评论(0) 推荐(0)

2021年8月23日

摘要: 1.并发 2.并行 3.进程 4.线程 5.协程 6.阻塞与非阻塞 7.同步与异步 IO 的概念有一定的认识: IO在计算机中指Input/Output,也就是输入和输出 并发于并行的例子 你吃饭吃到一半,电话来了,你一直到吃完了以后才去接,这就说明你不支持并发也不支持并行。 你吃饭吃到一半,电话来 阅读全文
posted @ 2021-08-23 16:24 lodger47 阅读(557) 评论(0) 推荐(0)

2021年8月19日

摘要: 函数指针 函数指针:函数名本身即函数指针,指向函数的入口地址。 函数指针的定义:返回值类型 (*函数指针名)(形参列表类型) = 函数名; 函数指针的调用:函数指针名(实参列表); 等价于函数名(实参列表); #include <iostream> int my_func(int a,int b) 阅读全文
posted @ 2021-08-19 14:48 lodger47 阅读(79) 评论(0) 推荐(0)

2021年8月16日

摘要: 临时设置 alias cp='cp –i' unalias cp 取消系统的别命令 alias rm='rm -f' alias ...='cd ../..' alias ....='cd ../../../' alias egrep='egrep --color=auto' alias grep= 阅读全文
posted @ 2021-08-16 15:29 lodger47 阅读(139) 评论(0) 推荐(0)

2021年8月7日

摘要: int a[5] = {1,2,3,4,5}; int b[3][4] = {1,2,3,4,5,6,5,1,2,4,5,6}; printf("%d\n",sizeof(a)); // 20 printf("%d\n",sizeof(b)); //48 printf("%d\n",sizeof(b 阅读全文
posted @ 2021-08-07 06:41 lodger47 阅读(19) 评论(0) 推荐(0)

2021年8月6日

摘要: gets | puts fgets gets | puts gets:会读取空格,gets遇到\n后,不会存储\n,而是翻译为\0空字符 gets: 正常返回字符数组起始地址,失败返回 NULL puts: puts成功时返回非负值,失败时返回EOF. puts只能用于输出字符串,同时会多打一个换行 阅读全文
posted @ 2021-08-06 07:08 lodger47 阅读(103) 评论(0) 推荐(0)

2021年8月5日

摘要: ![](https://img2020.cnblogs.com/blog/1843414/202108/1843414-20210805190237217-679340301.png) 阅读全文
posted @ 2021-08-05 19:03 lodger47 阅读(26) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 36 下一页

导航