18 lines
659 B
C++
18 lines
659 B
C++
#include "Invoice.h"
|
|
|
|
int main() {
|
|
Article *artikel1 = new Article("Habotov tic", "1223", 25.69);
|
|
Article *artikel2 = new WeighableArticle("Golobov tic", "2233", 2.33, 0.9);
|
|
Invoice *racun1 = new Invoice("Tici d.o.o");
|
|
artikel1->setQuantity(7);
|
|
racun1->addArticle(artikel1);
|
|
racun1->addArticle(artikel2);
|
|
racun1->print();
|
|
Article *artikel3 = new Article("Ficotov tic", "1223", 50000.12);
|
|
Article *artikel4 = new WeighableArticle("rajzmanov tic", "2234", 98.8, 15);
|
|
Invoice *racun2 = new Invoice("Novi Tici d.o.o");
|
|
racun2->addArticle(artikel3);
|
|
racun2->addArticle(artikel4);
|
|
racun2->print();
|
|
return 0;
|
|
} |