摘要: 1.如何实现交换两个数的值void swap( int *a,int *b){int tep=*a;//*a其实就是主函数a的值,a是主函数存a数值的地址。*a =*b;*b =tep;}2.如何实现二维数组函数排序void desc( int(* a) [10] ,int i){//这样子就可以再... 阅读全文
posted @ 2014-07-13 17:00 ifgyong 阅读(265) 评论(0) 推荐(0) 编辑
摘要: week_2_day1_7.7 周一//用字符数组 来实现 字母大小写转换#includevoid desc( char *a ,int n){ char *i = a; int x = 0 ; for ( x = 0; x = 97 ) *i-=32; i++; }}int main(void){... 阅读全文
posted @ 2014-07-12 20:52 ifgyong 阅读(686) 评论(0) 推荐(1) 编辑
摘要: 定义一个结构体,有两个成员变量,一个整型的n,一个字符型的c,利用结构体类型声明一个具有5个元素的数组,并随机初始化,根据成员变量n进行从小到大排序,然后输出 冒泡排序然后 在输出结构体#includestruct d{int x;char y;};int main(void){struct d a... 阅读全文
posted @ 2014-07-12 20:49 ifgyong 阅读(533) 评论(0) 推荐(0) 编辑