05 2017 档案

摘要:/*用函数实现不带入第三方变量给主函数原变量赋值*/#include void fun(int *a) { int b=200; *a = b; } int main() { int a=100; fun(&a); printf("a=%d\n", a); return 0; }/*用宏表示swap(a,b)数据交换*/1.... 阅读全文
posted @ 2017-05-26 11:06 quliuliu2013 阅读(210) 评论(0) 推荐(0)
摘要:1 #include <stdio.h> 2 #include <string.h> 3 4 void reqorder(char *input,char *output,int counter) 5 { 6 int i=0, j=0; 7 char *p=input; 8 char *buf=NU 阅读全文
posted @ 2017-05-19 18:18 quliuliu2013 阅读(8996) 评论(0) 推荐(0)