Есть ответ 👍

Практика по информатике. On the CPU tab, define:
– Processor model;
– technological process by which your processor is made;
– the structure and size of the cache memory of the processor;
On the Mainboard tab, define:
– Chipset Northbridge Model;
– Chipset Southbridge Model;
Define:
– The type of installed RAM modules;
– total amount of RAM installed;
– channel memory operation mode used;
Record the parameters you specified in the report.

262
449
Посмотреть ответы 1

Ответы на вопрос:


#include < iostream> #include < array> #include < numeric> using namespace std; const size_t n = 10; int main() {     size_t sum = 0;     array< int, n> a = { 1, 5, 9, 6, 3, 0, 1, 4, -2, 4 };     cout < < "count: ";     cout < < accumulate(a. a. 0, [& sum](size_t count, const int                                                                                                                 num) {                                                     if (num > 1 & & num < 5) {                                                         ++count;                                                         sum += num;                                                     }                                                     return count;                                                 });     cout < < " sum: " < < sum < < endl; }

Популярно: Информатика