I fixed it as well, well here is how I would have done it anyhow.
Edit: Fixed poor syntax.
#include <iostream>
#include <cstring>
using namespace std;
int main ()
{
float a, b, result;
string asd1;
cout << "What mathmatical operation would you like to do?\n";
cin >> asd1;
cout << "What is the first number in your equation?\n";
cin >> a;
cout << "What is the second number in your equation?\n";
cin >> b;
if ( strcmpi( asd1.c_str( ), "addition" ) == 0 ) {
result = a+b;
}
else if ( strcmpi( asd1.c_str( ), "division" ) == 0 ) {
result = a/b;
}
else if ( strcmpi( asd1.c_str( ), "subtraction" ) == 0 ) {
result=a-b;
}
else if ( strcmpi( asd1.c_str( ), "multiplication" ) == 0 ) {
result=a*b;
}
cout << "The answer is " << result << ".\n";
return( 0 );
}