consolidate all repos to one for archive
This commit is contained in:
19
semester_2/programiranje_2/primeri/Example06/main.cpp
Normal file
19
semester_2/programiranje_2/primeri/Example06/main.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#include <iostream>
|
||||
#include "CPoint.h"
|
||||
|
||||
int main() {
|
||||
Point p1(3,4);
|
||||
Point p2;
|
||||
CPoint c1;
|
||||
CPoint c2(1,2,3);
|
||||
CPoint c3(c2);
|
||||
|
||||
p1.print();
|
||||
c1.print();
|
||||
c2.print();
|
||||
c3.print();
|
||||
std::cout << p1.distance(p2) << std::endl;
|
||||
//std::cout << p1.distance(c1) << std::endl;
|
||||
//std::cout << c1.distance(p1) << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user