The program is supposed to take the users input in "furlongs" than convert that to yards. One furlong is 220 yards... so this is what i have so far but i keep getting an error about not using the right operator in the following code:
#include <iostream>
#include <string>
int main()
{
using namespace std;
string furlongs;
int yards;
yards = 220;
cout << "How many 'furlongs' did you run?" << endl;
getline(cin, furlongs);
//yards = furlongs * 220;
//yards = (furlongs * yards);
cout << "Damn dude you ran " << yards << " yards!!" << endl;
cout << "Congrats!!";
return 0;
}
the commented code are the attempts i have made...any help appriciated thx.