Дополнен 9 лет назад
вот мои наброски
#include
#include "stdafx.h"
#include
using namespave std;
int _tmain(int argc, _TCHAR* argv[])
{
setlocale(LC_ALL, "Rus");
srand((unsigned)time(NULL));
const int n=9;
int mass[n];
cout << "Исходный массив: " << endl;
for (int i = 0; i < n; i++)
{
mass[i] = rand() % 10;
}
for (int i = 0; i < n; i++)
{
cout << " " << mass[i];
}
cout << endl;
Дополнен 9 лет назад
библиотеки iostream и time.h