-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
57 lines (46 loc) · 1.23 KB
/
main.cpp
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#include "main.h"
using namespace std;
int main()
{
setlocale(LC_ALL, "Portuguese");
char cpf[15];
char address[15];
char customer[15];
char vendor[15];
char code[14];
char productName[15];
char date[8];
cout << "Digite CPF:" << endl;
cin >> cpf;
cout << "Digite Enrereço:" << endl;
cin >> address;
cout << "Digite o cliente:" << endl;
cin >> customer;
cout << "Digite nome de sua empresa:" << endl;
cin >> vendor;
cout << "Digite codigo de sua empresa:" << endl;
cin >> code;
cout << "Digite data de emissão:" << endl;
cin >> date;
// Create some products
Product sushi(50, 1.54, "Sushi");
Product carne(100, 45.23, "Carne");
Product acogg50(3000, 4.5, "Aco GG 50");
// Create qty of products
itemProduct it1(sushi, 4);
itemProduct it2(carne, 3);
itemProduct it3(acogg50, 60);
// Create Vendor and Customer
Customer cust(3, cpf, address, customer);
Vendor vend(5, vendor, code);
// Create the order
Order ord1(date,cust,vend);
ord1.addItems(it1);
ord1.addItems(it2);
ord1.addItems(it3);
// Create the Nota Fiscal
//ord1.display();
NotaFiscal nf01(ord1);
nf01.display();
return 0;
}