Untitled
unknown
plain_text
3 years ago
946 B
14
Indexable
#include <iostream>
#include "input_prot.h"
#include <string>
#include <cstdlib>
using namespace std;
int main()
{
double value{0.0};
long loboi{0};
char ch{};
cout << "Please enter a double number in between 0 and 100; enter '50.50' to abort the program..." "\n";
validate_input_range(value, "Invalid input, please try again." "\n");
cout << "Please enter another double number; it must be above 0..." "\n";
validate_input_positive(value, "Invalid input, please try again." "\n");
cout << "Valid input..." "\n";
cout << "Please enter another number above 0..." "\n";
validate_input_positive(loboi, "Invalid input, please try again." "\n");
cout << "Valid input..." "\n";
cout << "Please enter a char; it must be below decimal number 127 (ASCII)..." "\n";
validate_input_limits(ch, "Invalid input, please try again." "\n");
cout << "Valid input, thank you for using this program!" "\n";
}
Editor is loading...