20 lines
366 B
C++
20 lines
366 B
C++
#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;
|
|
}
|
|
|
|
|