All pastes #415017 Raw Edit

Mine

public text v1 · immutable
#415017 ·published 2007-03-29 13:47 UTC
rendered paste body
#include<iostream>


using namespace std;

bool GetChar(char Low, char High, char Input)
{
     if((Input > Low)&&(Input < High))
     {
               cout<<"This is a valid entry"<<endl;
               
               return true;
     }
     else
     {
         cout<<"This entry is invalid"<<endl;
         
         return false;
     }
}

int main()
{
    char Low = 'A';
    char High = 'F';
    char Input;
    
    cout<<"This program will ask the user to input a char inside a"<<endl;
    cout<<"specific range"<<endl;
    cout<<endl;
    cout<<"Please enter a letter: ";
    cin>>Input;
    cout<<GetChar;

}