填空学指针
来源:互联网 发布:中科大yum源 编辑:程序博客网 时间:2024/05/01 13:13
/** All rightsreserved. * 文件名称: array.cpp * 作 者:隋 鑫 * 完成日期: 2012 年12 月13 日 * 版本号: v1.0 * * 输入描述:无 * 问题描述:略*/ #include <iostream>using namespace std;const int N=8;void main(){int a[N],*p,*q;for(p=a;p<a+N;p++)cin>>*p;p=a;q=a+N-1;while(p<q){int r=*p;*p=*q;*q=r;p++;q--;}for(p=a;p<a+N;p++)cout<<*p<<' ';cout<<endl;}
运行结果:
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 填空学指针
- 16_5填空学指针
- 16-5 填空学指针
- 项目5-填空学指针
- 16周:填空学指针
- 利用Hog特征和SVM分类器进行行人检测
- Struts2的标签s:iterator的用法
- 20121213小结
- Open Source Big Data for the Impatient, Part 1
- 深入分析 Java 中的中文编码问题
- 填空学指针
- 循环和递归的优缺点比较
- 12306铁道部订票网站性能分析
- alsa config
- x86\x64\ia64的区别
- 你应当如何学习C++(以及编程)(rev#1) -
- [Accessibility] Missing contentDescription attribute on image
- HTTP Error 503. The service is unavailable
- 进程、线程、并发执行的概念