C++ - Reading Char Numbers.
If your making an ASCII game or if you want to print some ASCII chars on the screen...
You can just write this code to show all the ASCII and their numbers.
Code:
#include <iostream>
int main()
{
using namespace std;
for (int i = 1; i < 255; i++)
{
cout << (char) i << " Char number: "<< i <<endl;
}
cin.get();
return 0;
}
This may help you if you need the ASCII Chars.
Then you can just write this to add them.
Example:
Code:
char WriteHere = 1;
cout <<WriteHere;
This will print WriteHere (ASCII = 1).