摘要:
// 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 阅读全文
摘要:
---------- 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)->" 阅读全文