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
|
#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
using namespace std;
//overloaded input functions
char input(string prompt, string error_message);
double input(double max_num, double min_num, string prompt, string error_text);
void input (int pointx, int pointy, string prompt);
//overloaded distance functions
int distance(char a, char b);
double distance(double num1, double num2);
double distance(double x1, double y1, double x2, double y2);
//Overloaded display functions
void display(const string &msg, char ch1, char ch2);
void display(const string &msg, double num1, double num2);
void display(const string &msg, double x1, double y1, double x2, double y2);
int main() {
cout <<"Display the function between two items: letters, numbers, points."<<endl;
return 0;
}
char input (string prompt, string error_message){
char letter;
prompt = "Enter first letter (a to z):";
cout<<prompt;
cin>>letter;
return letter;
}
|