摘要: 实现一个字符串拷贝 main.c文件 1 #include <stdio.h> 2 #include "str_cpy.h" 3 4 int main(int argc, const char *argv[]) 5 { 6 char c[128] = {0}; 7 char c1[128]; 8 c 阅读全文
posted @ 2020-04-05 20:48 Halo辉Go 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 对数组排序,使用指针但不使用第三方变量 1 #include <stdio.h> 2 3 int main(int argc, const char *argv[]) 4 { 5 int a[10]={1,5,7,99,22,44,66,77,88,10}; 6 7 int *p,*q,i,j; 8 阅读全文
posted @ 2020-04-05 20:39 Halo辉Go 阅读(181) 评论(0) 推荐(0) 编辑