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 30 31 32 33 34 35
|
#include "stdafx.h"
#include "invoice.h"
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <string>
using namespace std;
int main()
{
const int SIZE = 8;
int in;
Invoice invoices[] = {
Invoice( 83, "es", 7, 57.98 ),
Invoice( 24, "ps", 18, 99.99 ),
Invoice( 7, "sh", 11, 21.5 ),
Invoice( 77, "h", 76, 11.99 ),
Invoice( 39, "lm", 3, 79.5 ),
Invoice( 68, "sd", 106, 6.99 ),
Invoice( 56, "js", 21, 11 ),
Invoice( 3, "w", 34, 7.5 ) };
for (int i = 0; i < SIZE; i++)
{
cout << invoices[i].getPart() << invoices[i].getDesc() << invoices[i].getPart() << invoices[i].getPart() << '\n';
}
cin >> in ;
return 0;
}
|