#include <cstdlib> #include <iostream> #include "sales.h" using namespace std; // ???? int main(int argc, char *argv[]) { using namespace SALE; Sales first;//dlya funczii setSales(,,) Sale…

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <cstdlib>
#include <iostream>
#include "sales.h"
using namespace std; // ????
int main(int argc, char *argv[])
{
using namespace SALE;
Sales first;//dlya funczii setSales(,,)
Sales second;
//Sales first_2 = {{3.6,7.6,53.2,7.7},0,0,0};//dlya funczii sttSales(Seles & s)
//Sales second_2 = {};
const double sArray[4] = {3.5,1.2,76.5,33.2};
const double s2_Array[4] = {22.1,5.54,7.9,33.2};
setSales(first,sArray,4);//for first object
setSales(first);
showSales(first);
setSales(second,s2_Array,4);//for second object
setSales(second);
showSales(second);
system("PAUSE");
return EXIT_SUCCESS;
}