consolidate all repos to one for archive
This commit is contained in:
28
semester_2/programiranje_2/naloga1001/Functions.h
Normal file
28
semester_2/programiranje_2/naloga1001/Functions.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef NALOGA1001_FUNCTIONS_H
|
||||
#define NALOGA1001_FUNCTIONS_H
|
||||
|
||||
#include "Artwork.h"
|
||||
|
||||
bool ascendingYear(Artwork* i, Artwork* j){
|
||||
return i->getYear() < j->getYear();
|
||||
};
|
||||
|
||||
bool descandingYear(Artwork* i, Artwork* j){
|
||||
return i->getYear() > j->getYear() ;
|
||||
};
|
||||
|
||||
bool ascendingPrice(Artwork* i, Artwork* j) {
|
||||
return (i->getPrice() > j->getPrice());
|
||||
|
||||
};
|
||||
|
||||
bool isRenaissanceArt(Artwork* a){
|
||||
//return (a->getYear() > 1400 && a->getYear() < 1600);
|
||||
return a->getYear() < 0;
|
||||
};
|
||||
|
||||
bool isCheperThen(Artwork* a){
|
||||
return a->getPrice() < 1500;
|
||||
};
|
||||
|
||||
#endif //NALOGA1001_FUNCTIONS_H
|
||||
Reference in New Issue
Block a user