摘要: 经过这次作业我明白了我基本功本身就很不扎实,很多步想自己背着打可是根本就做不到,我发现我现在要做的根本就不是更层次的编写,而是回归基本功 阅读全文
posted @ 2017-04-10 15:49 月光航线 阅读(474) 评论(0) 推荐(0) 编辑
摘要: 5.总结,知道了一个学习计算机语言的软件,学会了怎样生成随机数组,这次作业相比于其它次作业较难,但我不会放弃学习c语言的,我会更加努力的。 阅读全文
posted @ 2017-04-04 19:06 月光航线 阅读(126) 评论(0) 推荐(0) 编辑
摘要: #include int main() { void funstr(char str[12]); char str[12]={"hello world"}; char *a=str; str[0]='H'; str[6]='W'; funstr(a); return 0; } void funstr(char str[12])... 阅读全文
posted @ 2017-03-31 19:03 月光航线 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 子函数*i并没有把值传给*m以至于输出结果相同,那么定义的int *i就是错误的,它无法再传出去,造成了一系列的无法传送,最后运行的结果也是错误的。 阅读全文
posted @ 2017-03-26 09:58 月光航线 阅读(112) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> main() { int comp(int x,int y);//函数的说明 int (*p)(int x,int y);//定义指向函数的指针变量p int a,b,c; p=comp;//使p指向comp函数 scanf("%d,%d",&a,&b); c=( 阅读全文
posted @ 2017-03-26 09:52 月光航线 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include void swap(int *m,int *n) { int *i; i=m; m=n; n=i; } main() { int a,b; scanf("%d,%d",&a,&b); swap(&a,&b); printf("%d,%d",a,b); }总结:这个程序不怎么明白,不明白怎么只输... 阅读全文
posted @ 2017-03-26 09:48 月光航线 阅读(154) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> int main() {int swap(int *x,int *y);//指明swap函数 int a,b;//定义整型变量 scanf("%d,%d",&a,&b); int *x,*y;//定义指针变量 x=&a; y=&b;//指针x,y分别指向a,b s 阅读全文
posted @ 2017-03-22 17:45 月光航线 阅读(122) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>main(){int a[13]={1,2,3,4,5,6,7,8,9,10,11,12,13}; //定义数组 int *p; //定义指针变量 int i; //定义整形变量 p=a; //指针指向数组 for(i=0;i<13;i++) //循环输出数组的元素 阅读全文
posted @ 2017-03-17 17:08 月光航线 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 我希望自己可以学好c语言,目前最小的一个小目标就是争取不挂科,我目前还只能跟老师敲而已,别的做不了,我希望老师在慢一点,我会努力消化课上知识的。 阅读全文
posted @ 2017-03-15 20:47 月光航线 阅读(6058) 评论(1) 推荐(0) 编辑