You are viewing a single comment's thread. Return to all comments →
Regexp in c++ working? In gcc 5.3.1 wasnt..
Also:
vector<string> names; for(int a0 = 0; a0 < N; a0++){ string firstName; string emailID; cin >> firstName >> emailID; size_t t = emailID.find("@"); if (t != string::npos && emailID.substr(t) == "@gmail.com" && emailID.substr(0,t).find(firstName) != string::npos) names.push_back(firstName); } sort(names.begin(), names.end()); for(vector<string>::iterator i = names.begin(); i != names.end(); ++i) cout << *i << endl;
Seems like cookies are disabled on this browser, please enable them to open this website
Day 28: RegEx, Patterns, and Intro to Databases
You are viewing a single comment's thread. Return to all comments →
Regexp in c++ working? In gcc 5.3.1 wasnt..
Also: