diff options
Diffstat (limited to 'w4.cpp')
-rw-r--r-- | w4.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
@@ -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; -} |