consolidate all repos to one for archive
This commit is contained in:
52
semester_2/programiranje_2/naloga0201/naloga0201.cpp
Normal file
52
semester_2/programiranje_2/naloga0201/naloga0201.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user