aboutsummaryrefslogtreecommitdiffstats
path: root/w4.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'w4.cpp')
-rw-r--r--w4.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/w4.cpp b/w4.cpp
deleted file mode 100644
index bef51a8..0000000
--- a/w4.cpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <iostream>
-#include <vector>
-#include <sstream>
-
-using namespace std;
-
-struct point {
- double x;
- double y;
-
- string returnString() {
- stringstream ss;
- ss << "(" << x << ", " << y << ")";
- return ss.str();
- }
-};
-
-int main() {
- point userPt;
-
- cout << "Please enter a point: ";
- cin >> userPt.x >> userPt.y;
- cout << "Your point was: " << userPt.returnString() << endl;
-}