The program im working on needs takes in user input like this:
Enter Problem: 1/8 + 4/8
and outputs it like this
result: 5/8
How do you make the fraction output like that. How do you format it that way? Another question is how would I break down the user input the "/" in the input confuses me .
i remember doing this a while back without strings. its something like
std::cin << anumber << a char << anumber1;
than some statement/set of statements to call upon functions that will do the calculation.