Server IP : 172.16.15.8 / Your IP : 18.217.132.107 Web Server : Apache System : Linux zeus.vwu.edu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Wed Nov 6 14:29:02 UTC 2024 x86_64 User : apache ( 48) PHP Version : 7.2.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/kebuck/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// // testPixel.cpp // Adriver using Pixel class #include <iostream> using namespace std; #include "point.h" #include "pixel.h" int main() { Point p1(1, 2), p2(2, 3); // Declare px1 px2 of Pixel ? Pixel px1(0, 0, OFF), px2(1, 1, OFF); // cahnge p1 to (2,2)? p1.Set(2, 2); // out the coordinates for p1 and p2 ? p1.Print(); cout << "\n"; p2.Print(); cout << "\n"; // distance ? cout << "The distance is: " << p1.Distance (p2); // out the coordinate for p1 and p2? cout << "\n"; px1.Print(); cout << "\n"; px2.Print(); cout << "\n"; cout << "The distance is: " << px1.Distance (px2); cout << "\n\n"; return 0; }