摘要: // gcc -test.c -lconio -lpthread#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <unistd.h>#include <string.h>#include <time.h>#include <conio.h>#include <pthread.h>void act(void *arg){ int i; for(i = 0; i<10000; i++){ gotoxy(10+(int 阅读全文
posted @ 2012-08-29 03:37 庄庄庄 阅读(173) 评论(0) 推荐(0) 编辑
摘要: ---------- MAIN.C#include <stdio.h>#include <stdlib.h>#include <signal.h>#include <unistd.h>#include <string.h>#include <time.h>#include "queue.h" typedef struct { int a, b;} coord;void print(void *data){ coord *cc = data; printf("(%d, %d)->" 阅读全文
posted @ 2012-08-29 02:00 庄庄庄 阅读(263) 评论(0) 推荐(0) 编辑