I want to write a program that will ask the user for two characters; symbol1, and symbol2. The program will then print out which character is the larger of the two, with the ASCII value in parenthesis next to the symbol.
//char_compare.cpp
#include <iostream.h>
#include <iomanip.h>
int main()
{
int choice;
char symbol1, symbol2;
choice=1;
while (choice==1)
{
cout<<"\nEnter in the first character: ";
cin>>symbol1;
cout<<"\nEnter in the second character: ";
cin>>symbol2;
}
Where do I go from here? I want the ASCII values and then to find which one is larger, I just don't know how to necessarily do that..