29 lines
915 B
C++

#include "VectorUtil.h"
#include "Telefon.h"
#include "Racunalnik.h"
int main() {
std::vector<Telefon> telList;
std::vector<Telefon> telRList;
std::vector<Racunalnik> racList;
fillDefault<6>(racList);
std::cout << "--------------print Rac-------------------------------\n";
print(racList);
fillDefault<5>(telList);
std::cout << "--------------print Tel-------------------------------\n";
print(telList);
std::cout << "--------------toString Tel-------------------------------\n";
std::cout << toString(telList);
std::cout << "--------------revers Tel-------------------------------\n";
telRList = reverse(telList);
print(telRList);
std::cout << "--------------revers Tel-------------------------------\n";
Telefon t(4,3827,5);
if(findInList(telList,t)){
std::cout << "true";
}else{
std::cout << "false";
}
return 0;
}