摘要: int main(){int datas[10] = {-1, 2, 3, 4, 5, 6, 7 ,8, 9, 10};int max = 0;int min = 0; for(int i = 0; i datas[i]){min = datas[i];}}}cout > wait; return 0;} 阅读全文
posted @ 2013-08-29 10:37 Predator 阅读(3719) 评论(0) 推荐(0) 编辑
摘要: int datas[10] = {1, 2, 3, 4, 5, 6, 7 ,8, 9, 10};int *result = find(datas, datas + 10, 2);if(result == datas + 10){cout << "没有找到" << endl;}else{cout << "已经找到" << endl;}//输出已经找到 阅读全文
posted @ 2013-08-29 08:52 Predator 阅读(227) 评论(0) 推荐(0) 编辑