include vcl include iostream using namespace std void main int mass -3

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <vcl.h>
#include <iostream>
using namespace std;
void main()
{
int mass[] = {-3, -5, 100, 5, 0, -99, 3, 1};
int size_mass = sizeof(mass)/sizeof(mass[0]);
int temp = 0;
cout << "mass = ";
for(int i = 0; i < size_mass; i++)
{
cout << " " << mass[i];
}
temp = mass[3];
mass[3] = mass[7];
mass[7] = temp;
cout << "\nmass = ";
for(int i = 0; i < size_mass; i++)
{
cout << " " << mass[i];
}
cin.get();
}