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

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -