consolidate all repos to one for archive
This commit is contained in:
23
semester_2/programiranje_2/primeri/Example07/main.cpp
Normal file
23
semester_2/programiranje_2/primeri/Example07/main.cpp
Normal file
@@ -0,0 +1,23 @@
|
||||
#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 << "-------------" << std::endl;
|
||||
std::cout << p1.distance(p2) << std::endl;
|
||||
std::cout << p1.distance(c2) << std::endl;
|
||||
//std::cout << c1.distance(p1) << std::endl;
|
||||
//std::cout << c2.distance(c1) << std::endl;
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user