Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

CSC112 Spring 2016 Examples

2370 views
1
#include "termmanip.h"
2
#include "square.h"
3
#include <iostream>
4
5
using namespace std;
6
7
void
8
square::getUserParameters(int firstLine) {
9
//get our parts from the user
10
cout << cursorPosition(1, firstLine) << "X: ";
11
cin >> tx;
12
cout << cursorPosition(21, firstLine) << "Y: ";
13
cin >> ty;
14
cout << cursorPosition(1, firstLine+1) << "Size: ";
15
cin >> width;
16
height = width;
17
}
18
19