I'm a beginner programmer and I'm trying to make a add function that adds two numbers. but these numbers are passed by strings.
ex. four + five = is 9.
if the answer goes over 10m then it prints out "error".
can anyone help me ??
int add (string number1, string number2)
{
string Manta[10] = {"one","two","three","four","five","six","seven","eight","nine","ten"};
if( ??? )
{
}
else
cout << "ERROR!" << endl;
}