摘要: 相应main函数测试 测试结果 阅读全文
posted @ 2019-03-23 18:44 seraph墨 阅读(185) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #include #include #define BUFSIZE 1024 static int cnt; void name_color(const char *name); int mycmp(cons... 阅读全文
posted @ 2019-03-15 13:05 seraph墨 阅读(474) 评论(0) 推荐(0) 编辑
摘要: #include #include #include struct group_st { int a; char str[80]; }; int myshow(void *p); int mycha(void *p, void *tem); int add_arr(void **p, int *n, int size, void *tem) { if(*n ==... 阅读全文
posted @ 2019-02-20 20:31 seraph墨 阅读(169) 评论(0) 推荐(0) 编辑
摘要: /*1. a 和 &a 有什么区别请写出以下代码的打印结果#include<stdio.h> void main( void ) { int a[5]={1,2,3,4,5}; int *ptr=(int *)(&a+1); printf("%d,%d",*(a+1),*(ptr-1)); retu 阅读全文
posted @ 2019-02-20 14:51 seraph墨 阅读(119) 评论(0) 推荐(0) 编辑
摘要: /* strlen,strcpy,strcmp,strcat的实现*/#include<stdio.h>int strlen_(const char *s);char *strcpy(char *dest, const char *src);int strcmp(const char *s1, co 阅读全文
posted @ 2019-01-21 19:03 seraph墨 阅读(75) 评论(0) 推荐(0) 编辑
摘要: /* 1.求得两个整形数中较大的那一个*/#include<stdio.h>int compare(int x,int y);int main(void){ int a,b,i; printf("请输入两个需要比较的整形数\n"); scanf("%d %d",&a,&b); i = compare 阅读全文
posted @ 2019-01-17 19:19 seraph墨 阅读(70) 评论(0) 推荐(0) 编辑