program-organization/kn-clarification/main.cpp - The header file main.cpp. | Lecture 3 - slide 26 : 27 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; // [1,9,0] return 0; }