program-organization/kn-clarification/main.cpp - The header file main.cpp. | Lecture 2 - slide 44 : 46 Program 5 |
#include <iostream> #include "point.h" #include "tripple.h" int main() { using namespace std; Point p, q(3,4), r(Tripple(1,2,3)); Tripple t, v(p); cout << "p: "<< p << endl; // funny default constructor: (0,7) cout << "q: "<< q << endl; // (3,4) cout << "r: "<< r << endl; // (1,2) cout << "t: "<< t << endl; // (0,0,0) cout << "v: "<< v << endl; // (0,7) -> (1,9) per Point copy constructor -> (1,9,0) return 0; }