Dear friends:
I use the auto varble for the vector double, but could you please how to find the index of i when i loop over the vector.
vector<double> age;
for(auto i:age) cout<< " the index of i"<<endl;
Regards
Ding_1 0 Newbie Poster
AssertNull 1,094 Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.