GetElem()
来源:互联网 发布:刺客信条mac 编辑:程序博客网 时间:2024/06/07 02:48
#include<iostream>using namespace std;len= Length sizeof(L)/sizeof(int)int L[] = { 1, 2, 3, 4, 6, 6, 7, 8, 9 };int GetElem(int L[], int i, int &e){ if (len == 0 || i<1 || i>len); e=L[i-1]; return 1;}int main(){ int e=0; GetElem(L,5,e); cout << e << endl; return 0;}//线性表返回特定值
0 0
- GetElem()
- GetElem-SqList
- GetElem-LinkList
- 第三周项目1-(2)ListLength、GetElem、LocateElem函数
- 世界那么多大 我想去看看
- 计算机图形学导论(1)-基础数学
- 网络图片抓取--web开发批量盗图!!!!!
- android开发-定时器
- iOS 动画Animation详解, UIView动画(UIView属性动画,UIViewTransition动画,UIView Block动画),CALayer动画(CABasicAnima...)
- GetElem()
- 划分树
- http关闭连接
- sax解析xml
- PAT (Advanced Level) 1031. Hello World for U (20) 用字符串输出形状U
- android中的加载网络图片
- Hduoj2489【最小生成树+DFS】
- 浮点数在计算机中的编码
- nyoj两点距离