string service; vector<string> servlist; int weights; vector<int> weightslist; while(cin>>service) servlist.push_back(service); for(vector<string>::const_iterator it=servlist.begin(); it!=servlist.end(); ++it) { cin>>weights; weightslist.push_back(weights); cout<<endl; }
Powered by vBulletin® Version 3.8.5Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.