-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinput.hpp
More file actions
executable file
·32 lines (27 loc) · 796 Bytes
/
input.hpp
File metadata and controls
executable file
·32 lines (27 loc) · 796 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
/***************************************************************************
** Program Filename: input.hpp
** Author: Edwin Grove
** Date: 28/1/2016
** Description: The header file for the input class
** Input: string s
** Output: none
****************************************************************************/
#ifndef INPUTCHECK_HPP
#define INPUTCHECK_HPP
#include <string>
using std::string;
class input
{
private:
string s; //user input that will be used to return integer or double
bool check; //used to loop input checks
int decCount; //counts number of decimals in checkDouble()
public:
input();
~input() {}
int unsignedInt();
int signedInt();
double checkDouble();
int negNum;
};
#endif // !INPUTCHECK_HPP