Ok so for this assignment I have to have integer input in string and convert to integer..done:

```
int n, digit;
cout << "Enter a number: ";
cin >> snum;
n = 0;
int power = pow(10, snum.length()-1);
for (int i=0; i<snum.length(); i++)
{ digit = snum.at(i) - '0';
n = n + digit*power;
power = power/10;
}
cout << "n is "<< n <<endl;
```

then: convert the number to a decimal number from which ever base the user inputs.

Thats where I am lost, I have no idea where to start. Please help!!