Hey guys, i was bored so made a money converter, nothing is wrong with errors etc in the code but when i run my program, the pound sign is not valid, it comes up as a u with a accent on top, please help.
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{
unsigned int convertMoney;
char moneySymbol;
cout << "Enter whether you would like convert from £ / $ : ";
cin >> moneySymbol;
switch (moneySymbol)
{
case '$':
cout << endl << "Enter ammount to convert :";
cin >> convertMoney;
cout << "$" << convertMoney << " = £" << (convertMoney * 0.508233381);
break;
case '£':
cout << endl << "Enter ammount to convert :";
cin >> convertMoney;
cout << "£" << convertMoney << " = $" << (convertMoney * 1.9676);
break;
}
getch();
}
EDIT : I googled it and found this website, http://www.fileformat.info/info/unicode/char/00a3/index.htm
I looked and it told me to enter "\u00A3" for the pound sign, i did that put it came up with another symbol PLEASE HELP