About 11,000 results
Open links in new tab
  1. Is there a function that returns the ASCII value of a character? (C++)

    May 10, 2009 · You don't need a function to get the ASCII value -- just convert to an integer by an (implicit) cast: int x = 'A'; // x = 65 int y = '\t'; // x = 9 To convert a number to hexadecimal or …

  2. c++ - Convert an int to ASCII character - Stack Overflow

    This is how I converted a number to an ASCII code 0 though 9 in hex code is 0x30 - 0x39 6 would be 0x36. unsigned int temp = 6; // or you can use 'unsigned char temp = 6; unsigned char …

  3. c++ - How to convert an ASCII char to its ASCII int value ... - Stack ...

    I would like to convert a char to its ASCII int value. I could fill an array with all possible values and compare to that, but it doesn't seems right to me. I would like something like. char mychar = …

  4. c++ - Converting string to ASCII - Stack Overflow

    Jul 15, 2011 · Here is something I put together. I used a vector to store all of the ASCII values that are to be generated. We first ask the user for a string. Then we use type casting and add the …

  5. How does C++ char distinguish ASCII and UNICODE

    Nov 16, 2017 · I am currently programming with c++ a program that handles both alphabets and Korean characters. However I learned that the size of char in c++ is only 1 bytes. This meant …

  6. C++ Extended Ascii characters - Stack Overflow

    Feb 7, 2012 · Please remember that there is no such thing as extended ASCII. ASCII was and is only defined between 0 and 127. Everything above that is either invalid or needs to be in a …

  7. c++ - Why use ASCII code for letters of the alphabet in if …

    Feb 21, 2017 · "Only ASCII" is perhaps an over-simplification - there are many encodings that have h and H at the same position as in ASCII, such as the ISO 8859 series of codings. The …

  8. windows - outputting ascii table in C++ - Stack Overflow

    Nov 6, 2012 · code: #include <iostream> #include <iomanip> using namespace std; class Ascii_output { public: void run() { print_ascii(); } private: void print_ascii() { ...

  9. c++ - Output ASCII value of character - Stack Overflow

    Mar 27, 2018 · is one way (the cast circumvents the special treatement of a char type by the I/O stream library), but this will output your platform's encoded value of the character, which is not …

  10. c++ - Changing letters by ascii value - Stack Overflow

    Sep 17, 2014 · I am trying to use ascii values to check different values of a letter to decipher a simple Cesar cipher. I am running into problems when the program tries to check a letter after …

Refresh