Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.
and the following gives an error
BOOST_FOREACH(double x, myVec) x = 10.0;
so that I need to use
BOOST_FOREACH(pair<int,double> y, myMap) cout << y.first << "\t" << y.second << endl;
pair<int,double> y; BOOST_FOREACH(y, myMap) cout << y.first << "\t" << y.second << endl;
Join the community of 500,000 technology professionals and ask your questions.