随笔分类 -  c

摘要:#include <sys/socket.h> #include <sys/wait.h> #include <netinet/in.h> #include <netinet/tcp.h> #include <sys/epoll.h> #include <sys/sendfile.h> #inclu 阅读全文
posted @ 2021-05-28 17:16 ForMeDream 阅读(97) 评论(0) 推荐(0)
摘要://插入排序 int arr[]={1,3,0,10,19,17,16,16,20,9,2,8,7,4,6,30,5}; int point=1,tem=0;//取下标为1的元素出队 int len=sizeof(arr)/sizeof(int); for(int i=0;i<len-1;i++){ 阅读全文
posted @ 2020-04-01 20:58 ForMeDream 阅读(161) 评论(0) 推荐(0)
摘要:void addNode(NODE* pNode){ enum pflag flag; if(root==NULL){ root=pNode; return; } NODE* temp=root; NODE* proot=null; while(true){ if(temp->value>pNode-... 阅读全文
posted @ 2019-05-14 22:21 ForMeDream 阅读(151) 评论(0) 推荐(0)
摘要:/***********编译时要链接 -l dl 库************/#include #include #include #include"person.h" #include #include #include int main(){ typedef int (*SELECT)(PERSON*); typedef void (*ADD)(int ,PERSON*); voi... 阅读全文
posted @ 2019-03-06 13:32 ForMeDream 阅读(2039) 评论(0) 推荐(0)