- 博客(8)
- 收藏
- 关注
转载 抄写例题作业
9.1 #include<stdio.h> int main() { struct Student { long int num; char name[20]; char sex; char addr[20]; } a={10101,"lilin",'M',"123 Bei Jing Road"}; printf...
2017-04-10 00:11:00
165
转载 第三次作业
1.计算机专业翻译软件截图 用git提交源代码 码云账号2304771795@qq.com 题目要求:定义一个包含有10个整数的数组a并初始化,定义一个指针变量p,p指向数组a,定义函数fun,在fun内部访问数组,并打印出数组中各元素的值,在fun函数内不要出现数字10. #include<stdio.h> #define N 10 ...
2017-03-31 17:54:00
118
转载 课上作业
#include<stdio.h> 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++); ...
2017-03-30 23:11:00
97
转载 指针例题
例.10.1 #include<stdio.h>void main(){ int a,b; int*pointer_1,*pointer_2; a=100;b=10; pointer_1=&a;/*把变量a的地址赋给pointer_1*/ pointer_2=&b;/*把变量b的地址赋给pointer_2*/ printf("...
2017-03-26 11:19:00
133
转载 构建一个swap函数交换数值
#include<stdio.h>int swap(int*a,int*b)//声明函数为swap函数 {int c; *b=c; *b=*a; *a=c;}//利用第三个变量将数值交换 main() {int*a,*b,p,q; p=1; q=0; a=&p;b=&q;//将数值附给a和b sw...
2017-03-22 13:27:00
201
转载 改第一次作业
#include<stdio.h> #include<stdlib.h> main() { int a[10]; int i; for(i=0;i<10;i++) scanf("%d",&a[i]); for(i=0;i<10;i++) printf("%d",a[i]); printf("\n"); syst...
2017-03-20 13:58:00
72
转载 第一次作业 指针和数组的结合
#include<stdio.h>#include<stdlib.h>main(){int a[10];int i;for(i=0;i<10;i++)scanf("%d",&a[i]);for(i=0;i<10;i++)printf("%d",a[i]);printf("\n"); system("pause"); } ...
2017-03-18 22:35:00
140
转载 对C语言的学习畅想
作为一名学习计算机专业的学生,学好C语言对于我们来说是一件非常重要的事情,个人认为老师采用的这种教学方法已经可以帮助在课堂上很好的接受新的知识并且也可以实际操作,更加提高我们接受知识的速度。 转载于:https://www.cnblogs.com/yjwyjw/p/6572460.html...
2017-03-18 11:30:00
119
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人