I've created a class Fraction, and declared a private static character to hold the slash for displaying the fraction in fraction form later on. I can't seem to get the static char to compile and I need to figure out what I've done wrong, thank you for the help, jennie
while (den == 0)
{
cout<<"Enter a number greater than zero."<>den;
cin.ignore(80,'\n');
}
cout <<"The denominator is "<>input;
cin.ignore(80,'\n');
while (input != 1 && input !=2)
{
cout<<"Your entry must be a 1 or a 2, please try again."<>input;
cin.ignore(80,'\n');
}
if (input == 1)
cout<<"The fraction in traditional form is "<
#include "fraction.h"
#include "fraction.cpp"
int main()
{
Fraction oneFraction;
oneFraction.enterFractionValue();
oneFraction.displayFraction();
cout << "Press Enter to continue";
getchar();
return 0;
}