网站建设资讯

NEWS

网站建设资讯

Range-Basedfor

vector vs = {"abc","xyz","mnq"};

 vector::iterator itr = vs.begin();
 for(; itr != vs.end(); itr++)
 {
 cout<<*itr<
int arr[10] = {1,2,3,4,5,6,7};
for(auto &i: arr)
{
cout<
map mis={
{1,"c++"},
{2,"java"},
{3,"python"}
};
map::iterator itr = mis.begin();
for(; itr != mis.end(); ++itr)
{
cout<<(*itr).first<<"\t"<second<            
            
                        
网页标题:Range-Basedfor
转载来于:http://cdweb.net/article/jdpphe.html