/*! Reads parameters from global user's arguments */ void HuMoments::Params::ReadFromUserArguments() { StrArray options; options.push_back("I1"); options.push_back("I2"); options.push_back("I3"); options.push_back("I1I2"); options.push_back("I1I3"); g_userArgs.ReadArg("HuMomentsComp", "method", options, "Contour comparison method", 0, &methodId); }
// vyrobit vektor int a naplnit int main(int argc, _TCHAR* argv[]) { StrArray sa; string str; for (int i=0;i<4;++i) { cin >> str; sa.push_back(str); } cout << endl; string rem = "ddd"; StrArray::iterator new_end = remove ( sa.begin(), sa.end(), rem); sa.erase(new_end,sa.end()); for (StrArray::iterator it = sa.begin(); it != sa.end(); ++it) { cout << *it << " "; cout << endl; } /* while (!ia.empty()) { cout << ia.back() << " "; ia.pop_back(); } cout << endl;*/ cout << endl; string x; cin >> x; return 0; }