consolidate all repos to one for archive
This commit is contained in:
19
semester_2/programiranje_2/primeri/Example20/main.cpp
Normal file
19
semester_2/programiranje_2/primeri/Example20/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include "C.h"
|
||||
|
||||
int main() {
|
||||
int i1 = 1;
|
||||
int i2 = 2;
|
||||
C<int> o1;
|
||||
C<double> o2;
|
||||
C<const char*> o3;
|
||||
C<int*> o4;
|
||||
std::cout << o1.less(i1, i2) << " ";
|
||||
std::cout << o2.less(1.2, 3.4) << " ";
|
||||
std::cout << o3.less("abcd", "abcx") << " ";
|
||||
std::cout << o4.less(&i1, &i2) << std::endl;
|
||||
//o2=o1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user