I am writing a programmer for a basic C++ class that uses a 2 stacks in order to evaluate an equation. I have everything in order and even saw my teacher a couple of times and he helped me. But the problem is that whenever I input, nothing happens. It simply just either waits for me to type something else, or gives me a core dump error. Any Ideas? Here is the code.
#include "linkedStack.h"
#include <iostream>
#include <cmath>
#include <stdlib.h>
#include <string.h>
using namespace std;
struct operatorStruct
{
string op;
int precedence;
};