-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinputValidation.hpp
More file actions
34 lines (31 loc) · 1.11 KB
/
inputValidation.hpp
File metadata and controls
34 lines (31 loc) · 1.11 KB
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
/********************************************************************************************************
** Program Name: Final Project - A Text-based Game- main.hpp
** Author: Andrew Friedrich
** Date: 06/01/2019
** Description: This file is the Final Project - A Text-based Game - inputValidation.hpp - header
** file. Ensures that user input won't generate errors
**
*********************************************************************************************************/
#ifndef INPUTVALIDATION_HPP
#define INPUTVALIDATION_HPP
#include <iostream>
#include <iomanip>
#include <string>
#include <cstdlib>
#include <math.h>
#include <ctime>
#include <cstddef>
// requirement input validation that ensures that
// letters will not cause a crash or infinite looping.
// inspiration for code taken from
// https://stackoverflow.com/questions/13212043/integer-input-validation-how
int inputValCheck2();
int inputValCheck2a();
int inputValCheck2b();
int inputValCheck3();
int inputValCheck4();
int inputValCheck5();
int inputValCheck6();
int inputValCheck25x();
int inputValCheckQuit();
#endif