- 博客(7)
- 收藏
- 关注
转载 抄写例题作业
9.1 把一个学生的信息(包括学号、姓名、性别、住址)放在一个结构体变量中,然后输出这个学生的信息。 复制代码 #include<stdio.h> int main() { struct student { long int num; char name[20]; char sex; ...
2017-04-08 19:23:00 287
转载 C语言作业
#include<stdio.h> int main() { void fun(int a[10]); int a[10]={1,2,3,4,5,6,7,8,9,10}; } void fun(int a[]) { int i; int *p; p=&...
2017-04-04 13:17:00 104
转载 课上作业补充
#include<stdio.h> main() {char funstr(char* str); char str [11]="helloworld"; printf("%s\n",str); str[0]='H'; str[6]='w'; puts(str); getchar(); funstr(str);} char funstr(ch...
2017-04-04 13:17:00 66
转载 第三次作业
1. void swap(int *p,int *q) {int *temp; *temp=*p; *p=*q; *q=*temp; }不能实现交换的原因:*p就是整型变量,而*temp是指针变量temp所指向的变量,但temp无确定值,因此temp所指向的单元室不可预见的。所以对*temp赋值有可能给一个存储这重要数据的存储单元赋值,这样就会破坏系统的正常工作。 2.vo...
2017-03-26 10:45:00 116
转载 第二次作业
#include<stdio.h> int main() { void swap(int *p,int *q); int a,b,*p1,*p2; scanf( "%d%d",&a,&b); p1=&a;p2=&b; if(a<b) swap(p1,p2); p...
2017-03-22 18:56:00 63
转载 第一次作业
#include<stdio.h> int main () { int i, *p,int a[7]; 输入一个指针,一个长度为7的数组 *P=a; p=a; 将a的值附给p prinf("a[%d]=%d\n"i,*p); 输出p的值 } 2016024263 伍燕宽 转载于:https://www.cnblogs.com/2...
2017-03-18 21:58:00 57
转载 对课堂的想法
我觉得老师所讲的内容我不了解,希望老师在课堂上能解释一下相关符号或是词语所代表的意思,讲仔细些。 2016024263 伍燕宽 转载于:https://www.cnblogs.com/2016024263wky/p/6557924.html...
2017-03-18 10:35:00 107
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人