this is suppose to add two functions
void AddFractions(int & x, int & y, int & x2, int & y2);
void GetFrac(int, int);
case 1: GetFrac(x, y);
GetFrac(x2, y2);
AddFractions(int & x, int & y, int & x2, int & y2);
cout << "The sum of " << x << " / " << y << " + " << x2;
cout << " / " << y2 << " = " << sum << endl;
break;
void GetFrac(int & num, int & denom)
{
char slash;
int n, d;
cin >> n >> slash >> d;
}
void AddFractions(int & x, int & y, int & x2, int & y2)
{
int denom1, n, d, a, b, c, e, sum = 0;
denom1 = c * e;
n = (a/c) * denom1;
d = (b/e) * denom1;
sum = n + d;
}