Николай Веселуха
Высший разум
(362199)
7 лет назад
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string words[] = { "seven", "three", "eleven", "five", "eight" };
auto short_word = *min_element(begin(words), end(words), [](string& a, string& b) {
return a.length() < b.length();
});
cout << short_word << endl;
cin.get();
}