-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputValidation.h
More file actions
34 lines (29 loc) · 844 Bytes
/
inputValidation.h
File metadata and controls
34 lines (29 loc) · 844 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
/***************************************************************************************************
** Author: Michael Johnson
** Date: 7/27/2017
** Description: Class header for Input Validation class
***************************************************************************************************/
#ifndef INPUTVALIDATION_H
#define INPUTVALIDATION_H
#include <iostream>
#include <vector>
#include <string>
using std::cout;
using std::cin;
using std::endl;
using std::vector;
using std::string;
class InputValid
{
private:
string input; // Initializes variable to empty string
int counter, // Creates variable to use for counting
tries; // Creates variable to hold number of tries
public:
InputValid();
string isString();
int isPosInteger();
double isFloat();
char isChar();
};
#endif