cout << "Give a number to convert to ascii: ";
cin >> numeric;
cout << "The ascii value of " << numeric << " is " << (char) numeric;
system("pause");
}
it is wOrkinfg well but problem is with the multiplication sign when i use ascii code of multiplication sign which is 158.it appears another sign not multiplication sign.......:( aLL other ascii codes are working well
i m requiring fOr tht multiplication sign × not *(apstaract) & its ascii code is 158 which is not wOrking......actuaLLy i m writting prOgrame fOr the table.........all the code is ready other than that multiplication sign......:'(
ASCII defines 128 characters. All characters above that depend on your implementation. On some machines you may get ×. On others you may not. It can change on the same machine depending on settings.
If you want to use the values above 128, you will have to do some reseach on your own system to see what it uses.
Also, there is something wrong with your keyboard. You are missing punctuation marks, and some of your letters are being capitalised at random. This is bad. It creates the impression that you are five years old. You should fix your keyboard.