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