yulixin

2019年3月24日

anyalarm

摘要: 1 #ifndef __ALRM_H 2 #define __ALRM_H 3 4 #define MAX 1024 5 6 typedef void (*any_t)(void *s); 7 8 typedef struct { 9 int times; 10 any_t any; 11 void *p; 12 }alarm_t; 13 14 ... 阅读全文

posted @ 2019-03-24 16:49 yulixin 阅读(89) 评论(0) 推荐(0) 编辑

2019年3月15日

myls

摘要: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 13 int llstat(char *p); 14 int astat(... 阅读全文

posted @ 2019-03-15 17:48 yulixin 阅读(135) 评论(0) 推荐(0) 编辑

2019年1月22日

2019 1-22

摘要: #include static int string_length(const char*p); //void strcpy(char *p1, const char *p2); int strcmp(char *m1, char *m2); char *strcat(char *n1, char *n2, char *n3); int main() { char a[]="he... 阅读全文

posted @ 2019-01-22 09:26 yulixin 阅读(99) 评论(0) 推荐(0) 编辑

2019年1月17日

2019 1-17

摘要: /* 1.求得两个整数中较大的那一个。 */ #include int largernumber(int, int); int main(void) { int var1, var2, num; printf("请输入两个整数:"); scanf("%d %d", &var1, &var2); num = largernumber(var1, var2); printf("输入的... 阅读全文

posted @ 2019-01-17 19:54 yulixin 阅读(97) 评论(0) 推荐(0) 编辑