Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <algorithm>
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- int main() {
- vector<string> langs = {"Python"s, "Java"s, "C#"s, "Ruby"s, "C++"s};
- auto result = find_if(langs.begin(), langs.end(), [](const string& c){
- return c[0] == 'C';
- });
- cout << *result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement