-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuserinput.cpp
More file actions
51 lines (44 loc) · 957 Bytes
/
userinput.cpp
File metadata and controls
51 lines (44 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#include "userinput.h"
using namespace std;
int userinput::getColumns()
{
int columns;
cout << "Please enter the number of columns in your data set: ";
cin >> columns;
return columns;
}
int userinput::getRows()
{
int rows;
cout << "Please enter the number of rows in your data set: ";
cin >> rows;
return rows;
}
string userinput::getTitle()
{
string title;
cout << "Please enter the title for your graph: ";
getline(cin, title);
return title;
}
string userinput::getVLabel()
{
string label;
cout << "Please enter the label for your vertical axis: ";
getline(cin, label);
return label;
}
string userinput::getHLabel()
{
string label;
cout << "Please enter the label for your horizontal axis: ";
getline(cin, label);
return label;
}
char userinput::getPlottingChar()
{
char pc;
cout << "Please enter the character you want to use for plotting data: ";
cin >> pc;
return pc;
}