2017年4月10日

摘要: #include int main() { struct Student { long int num; char name[20]; char sex; char addr[20]; } a={10101,"lilin",'M',"123 Bei Jing Road"}; printf("num=%d\n,name=%s\n,sex=%c\n,addr=%s\n",a.num,a.nam... 阅读全文
posted @ 2017-04-10 15:37 曾祥刚 阅读(161) 评论(0) 推荐(0) 编辑
摘要: #include struct student { int num; char name[20]; float score; }; int main() { struct student stu[5]={{10101,"lili",78},{10103,"gygy",98.5},{10106,"fttf",86},{10108,"bbhh",73},{10110,... 阅读全文
posted @ 2017-04-10 10:20 曾祥刚 阅读(88) 评论(0) 推荐(0) 编辑

2017年4月5日

摘要: #include"stdio.h"#include"stdlib.h"int main(){ void fun(int a[10]); int a[10]={0}; //定义一个含有10个整数的数组 并初始化 fun(a); system("pause"); }void fun(int a[]){ 阅读全文
posted @ 2017-04-05 07:54 曾祥刚 阅读(63) 评论(0) 推荐(0) 编辑

2017年3月31日

摘要: 课堂上写程序的,明明看着没什么问题,结果一运行,出现错误一大堆,后来根据老师的方法,一句句的检查,加上同学的矫正,也发现了问题所在,主要是在函数调用那方面拿捏的不够好,以后会注意的😄 阅读全文
posted @ 2017-03-31 19:00 曾祥刚 阅读(72) 评论(0) 推荐(0) 编辑
摘要: #include void main() { void funstr(char a[],char b[]); char a[]="hello world"; char b[]="Hello World"; funstr(a,b); int i; char*p; p=a; for(i=0;i<10;i++); printf("... 阅读全文
posted @ 2017-03-31 18:51 曾祥刚 阅读(89) 评论(0) 推荐(0) 编辑

2017年3月26日

摘要: 具体也没有出现大的差错,在运行的时候,发现运行错误,经过查看才知道是符号我用法不对,经过更改便能运行了 阅读全文
posted @ 2017-03-26 10:09 曾祥刚 阅读(65) 评论(0) 推荐(0) 编辑

2017年3月22日

摘要: #include int swap(int*x,int*y) {int z; *y=z; *y=*x; *x=z;} main() { int*x,*y,p,q; p=1; q=0; x=&p;y=&q; swap(x,y); printf("%d,%d",p,q);//输出最后换值后的结果· return 0; 阅读全文
posted @ 2017-03-22 17:11 曾祥刚 阅读(79) 评论(0) 推荐(0) 编辑

2017年3月18日

摘要: #include<stdio.h> void swop(int *x, int *y) { int t; t = *x; *x = *y; *y = t; } int main(void) { int a = 3; int b = 4; int *x = &a; int *y = &b; swop( 阅读全文
posted @ 2017-03-18 19:48 曾祥刚 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 希望能够学好这门学科,学会编程编代码,努力做好💪 阅读全文
posted @ 2017-03-18 19:46 曾祥刚 阅读(89) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/zxg99/ 阅读全文
posted @ 2017-03-18 19:35 曾祥刚 阅读(71) 评论(0) 推荐(0) 编辑

导航