I change your code here , and I compile with Code::Blocks and tested :
<br />
#include <iostream><br />
#include <iomanip><br />
#include <cstring>
#include <cstdio><br />
<br />
using namespace std;<br />
<br />
int main()<br />
{<br />
float number1=0;
float total=0;
char currency[4];
<br />
cout << "Enter amount of us dollars: ";<br />
cin >> number1;<br />
<br />
cout << "What currency would you like to convert it to?" << endl;<br />
<br />
cout << "Canada Dollar (CD)" << endl;<br />
cout << "Eurozone Euro (EE)" << endl;<br />
cout << "India Rupee (IR)" << endl;<br />
cout << "Japan Yen (JY)" << endl;<br />
cout << "Mexico Peso (MP)" << endl;<br />
cout << "South Africa Rand (SAR)" << endl;<br />
cout << "United Kingdom Pound (UKP)" << endl;<br />
<br />
cout << "Choose currency by the letter(s) in the parentheses: ";<br />
cin >> currency;<br />
if (strcmp(currency,"CD")==0)<br />
total = 1.01615 * number1;
else if (toupper (currency == 'EE'))<br />
total = .638490 * number1;<br />
else if (toupper (currency == 'IR'))<br />
total = 40.1798 * number1;<br />
else if (toupper (currency == 'JY'))<br />
total = 104.390 * number1;<br />
else if (toupper (currency == 'MP'))<br />
total = 10.4613 * number1;<br />
else if (toupper (currency == 'SAR'))<br />
total = 7.60310 * number1;<br />
else if (toupper (currency == 'UKP'))<br />
total = .504285 * number1;<br />
<br />
<br />
cout << "Currency converted: " << total << endl;<br />
<br />
<br />
return 0;<br />
}<br />
<br />
<br />
</cstdio></cstring></iomanip></iostream>