hi, I am trying to make a variable equation solver using DEV-C++. I just need to know how to get C++ to solve an equation inputed by the user. So you input something like 1+1 and i need it to solve the problem and output the answer. heres an example:

```
#include<iostream>
using namespace std;
int main (char argc)
{
string n1;
cin >> n1; // i input 1+1
int n2;
solve n1 = n2;
cout << n2 << endl; // it outputs 2
}
```

thanks