forked from grantrostig/cpp_by_example
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
22 lines (19 loc) · 561 Bytes
/
main.cpp
File metadata and controls
22 lines (19 loc) · 561 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Friend_Function.cpp : This file contains the 'main' function. Program execution begins and ends there.
#include <iostream>
#include "point.h"
#include "line.h"
using namespace std;
int main()
{
mylib::point p1(12, 3);
//std::cout << "X : " << p1.get_x() << "\tY : " << p1.get_y() << '\n';
mylib::print_point(p1);
mylib::line line1{};
line1.draw_line();
mylib::line line2(new mylib::point(23, 40), new mylib::point(50, 50));
line2.draw_line();
/* mylib::A aobj;
aobj.foo();*/
cout << "###" << endl;
return 0;
}