摘要: 1 #include 2 #include 3 #include 4 #include 5 6 int num=0; 7 pthread_mutex_t lock; 8 pthread_t th; 9 10 11 void* th_handler(void* p){ 12 int i=0; 13 for(;i<10;i++){ 14 pth... 阅读全文
posted @ 2019-02-24 14:45 ForMeDream 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 二级指针 指针的指针 阅读全文
posted @ 2019-02-24 02:20 ForMeDream 阅读(118) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>#include<stdlib.h>#include<unistd.h>#define MAX 500typedef struct{ int head; int tail; int* que; int num;}QUE;void initQueue(QUE* q){ 阅读全文
posted @ 2019-02-24 00:16 ForMeDream 阅读(117) 评论(0) 推荐(0) 编辑