My goal is to implement a stack of fractions. Put 3 fractions on the stack, retrieve them and print out. The code compiles without errors, however, I do not think I am using the stack correctly and only printing out. Any suggestions is appreciated.
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;