ЛИ
Латифов Исмоил
вводится строка в ней нужно поменять местами наименьшее и наибольшее слово (пишется на с++)
вот мой код
#include "stdafx.h"
#include
#include
#include
#include
#include
class LenCmp : public std::binary_function {
public:
bool operator() (const std::string& a, const std::string& b){
return a.length() > b.length();
}
};
int main()
{
std::string s;
std::cout > tmp )
words.insert(tmp);
std::cout