1 .基于范围的for循环
在c++98
中,若要访问一个数组中的数据元素,则需采用循环和下标的方式输出数组中的内容。
如:
/*************************************************************************
* File Name: testFor.cpp
* Author: The answer
* Function: Other
* Mail: 2412799512@qq.com
* Created Time: 2018年04月11日 星期三 01时46分57秒
************************************************************************/
#include<iostream>
#include<algorithm>
using namespace std;
int main