Предмет: Русский язык, автор: КискаКриска

спиши текст вставь пропущенные буквы раскрой скобки обозначь части слов в которых находятся вставленные тобой буквы

Приложения:

Ответы

Автор ответа: НиккиРей
9
Я ушёл в свою обиду
И сказал, что я не выйду
вот не выйду, никогда !
Буду жить в ней все года !
И в обиде
Я не видел
Ни цветочка, ни куста
И в обиде
Я обидел
И щеночка, и кота
Я в обиде
Съел пирог
И в обиде
Я прилег
Проспал в ней два часа
Открываю я глаза
А она куда-то делась
Но искать
Не захотелось.
Интересные вопросы
Предмет: Информатика, автор: whatisslove
Помогите с кодом либо перепишите( здесь все работает кроме названия производителя ), выдает 2 ошибки: 1) отсутствуют экземпляры конструктора "Commutator::Commutator",соответствующий списку аргументов
2)"Commutator::Commutator(int,int,int,std::string,float)": невозможно преобразовать аргумент 5 из "std::string" в "float"
#include
#include

const int N = 10;

class Commutator
{
public:
int portCounter;
int portSpeed;
int matrixSpeedCommunication;
float price;
std::string manufacturer;

Commutator()
{
};

Commutator(int portCounter_, int portSpeed_, int matrixSpeedCommunication_,
std::string manufacturer_, float price_)
{
portCounter = portCounter_;
portSpeed = portSpeed_;
matrixSpeedCommunication = matrixSpeedCommunication_;
price = price_;
manufacturer = manufacturer_;
}
};

int main()
{
std::string manufacturers[] = { "name1","name2","name3" };
srand(time(nullptr));

Commutator commutatorArray[N];
for (int i = 0; i < N; ++i)
{
int manufacturerIndex = rand() % 3;
commutatorArray[i] = *new Commutator(rand() % 20 + 5, rand() % 4000 + 2000, rand() % 100 + 20, 0,
manufacturers [manufacturerIndex]);
commutatorArray[i].price = commutatorArray[i].portCounter * 2.0 + commutatorArray[i].matrixSpeedCommunication * 1.5 + commutatorArray[i].portSpeed * 1.2;
std::cout << "[" << i << "] " << commutatorArray[i].manufacturer <<";" << commutatorArray[i].portCounter << "; " << commutatorArray[i].matrixSpeedCommunication
<< "; " << commutatorArray[i].portSpeed << "; " << commutatorArray[i].price << "\n";
}
Commutator bestPriceArray[N];
Commutator bestPortCounter[N];
std::copy(commutatorArray, commutatorArray + N, bestPriceArray);
std::copy(commutatorArray, commutatorArray + N, bestPortCounter);

//Sort by price
std::sort(bestPriceArray, bestPriceArray + N, [](const Commutator& a, const Commutator& b) -> bool
{
return a.price > b.price;
});

//Sort by portNumber
std::sort(bestPortCounter, bestPortCounter + N, [](const Commutator& a, const Commutator& b) -> bool
{
return a.portCounter < b.portCounter;
});

std::cout << "Best price:\n";
for (int i = 1; i < 6; ++i)
{
std::cout << "[" << i << "] " << bestPriceArray[N - i].portCounter << "; " << bestPriceArray[N - i].matrixSpeedCommunication << "; " << bestPriceArray[N - i].portSpeed << "; " << bestPriceArray[N - i].price << "\n";
}
std::cout << "Best port counter:\n";
for (int i = 1; i < 6; ++i)
{
std::cout << "[" << i << "] " << bestPortCounter[N - i].portCounter << "; " << bestPortCounter[N - i].matrixSpeedCommunication << "; " << bestPortCounter[N - i].portSpeed << "; " << bestPortCounter[N - i].price << "\n";
}
}
даю 30 баллов​
Предмет: Алгебра, автор: aytrtyyttty
Предмет: Алгебра, автор: asmrchannel80