书本预习
星火漫天夜如昼
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
有效的在函数内部的交换
#include int a,b;//全局变量会被屏蔽——从例子2看出来 void jh(int* a,int* b)//有效,涉及到了指针 { int c; c=*a;*a=*b;*b=c; } void jh2(int a,int b)/*无效,单纯的数值,代码块一结束就被释放;当然如果a,b不做形参,a,b还是能起到全局变量的作用,包括这一函数*/ { int c; c=原创 2018-01-21 23:01:30 · 209 阅读 · 0 评论 -
算法训练 动态数组使用
算法训练 动态数组使用 时间限制:1.0s 内存限制:512.0MB 从键盘读入n个整数,使用动态数组存储所读入的整数,并计算它们的和与平均值分别输出。要求尽可能使用函数实现程序代码。平均值为小数的只保留其整数部分。 样例输入: 5 3 4 0 0 2样例输出:9 1 样例输入: 73 2 7 5 2 9 1样例输出:29 4 #i原创 2018-01-15 09:11:22 · 246 阅读 · 0 评论 -
结构体的学习
Struct1.0 #include struct student { char name[15]; int id; float score; } ; int main() { struct student wn={"wangning",174842,99}; printf("%s\t%d\t%.2f\n",wn.name,wn.id,wn.score); wn.id =原创 2018-01-11 13:48:01 · 454 阅读 · 0 评论 -
quicksort个人理解——图片形式——个人手写
https://pan.baidu.com/s/1bqMQDPX第一张图片做了一个比喻。原创 2018-03-04 11:30:23 · 187 阅读 · 0 评论
分享