52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
#include <iostream>
|
|
#include "Artwork.h"
|
|
#include <string>
|
|
|
|
int main() {
|
|
std::cout << "Hello, World!" << std::endl;
|
|
Artwork a("nikola", "nik", "pet", 20, 15);
|
|
Artwork b;
|
|
|
|
std::string name = "lag";
|
|
std::string tit = "dsla";
|
|
std::string des = "pet";
|
|
int pri = 33;
|
|
int ye = 66;
|
|
|
|
b.setAuthor(name);
|
|
b.setTitle(tit);
|
|
b.setDescription(des);
|
|
b.setDescription(des);
|
|
b.setPrice(pri);
|
|
b.setYear(ye);
|
|
|
|
std::cout << a.toString();
|
|
b.print();
|
|
|
|
Artwork f(a);
|
|
f.print();
|
|
Artwork *c = new Artwork;
|
|
Artwork *d = new Artwork("jan", "andz", "novak", 34, 75);
|
|
|
|
c->setAuthor(name);
|
|
c->setTitle(tit);
|
|
c->setDescription(des);
|
|
c->setDescription(des);
|
|
c->setPrice(pri);
|
|
c->setYear(ye);
|
|
|
|
d->print();
|
|
std::cout << c->toString();
|
|
|
|
std::cout << f.getAuthor() << "\n";
|
|
std::cout << a.getTitle() << "\n";
|
|
std::cout << b.getDescription() << "\n";
|
|
std::cout << c->getPrice() << "\n";
|
|
std::cout << d->getYear() << "\n";
|
|
|
|
delete c;
|
|
delete d;
|
|
|
|
return 0;
|
|
}
|
|
//string Avto
|