Im trying to make a hexadecimal to decimal converter as a test for myself, it all works well until i try assign a number to it, when i do it turns into a smiley face... i just want it to
1 2 3 4 5 6 7 8 9 10
#include <iostream>
int main()
{
char y;
std::cin >> y;//i will enter 'a'
y=5;//it should become 5 there but it doesnt
std::cout << y << std::endl;
return 0;
}