ASCII Dec to Char in C++ -


i want every characters of ascii in normal char. if put char key only, return dec.

my request:

char alph = //ascii dec normal char 

for example: in dec 65 note: don't have characters, have ascii codes in dec 65.

because need user input 65

in case can this:

#include <iostream>  using namespace std;  int main() {     int code;     cout << "enter char code:" << endl;     cin >> code;      char char_from_code = code;     cout << char_from_code << endl;      return 0; } 

this ouput:

enter char code: 65 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -