About 1,740,000 results
Open links in new tab
  1. C++ Program To Print ASCII Value of a Character

    Jun 13, 2024 · Given a character, we need to print its ASCII value in C++. Examples: Input: a Output: 97. Input: D Output: 68. Using Type Conversion. Here int() is used to convert a …

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

    Jul 15, 2011 · We first ask the user for a string. Then we use type casting and add the values to a vector. We also use a while loop to prevent the user from not entering nothing. std::vector …

  3. Transforming a string into ASCII (C++ Programming Tutorial)

    Sep 23, 2023 · With ‘while’ we loop trough the array and convert every character using int(word[x]) to its ASCII value. If we hit the ‘\0’ (end of the string), the while loop returns false …

  4. C program to print ASCII values using while loop.

    Oct 17, 2016 · In this program we will learn how to print ASCII value along with the characters using while loop in c programming language? Here we will print ASCII value along with the …

  5. Printing Character’s ASCII Value in C++ Program - Shiksha

    Nov 28, 2023 · Using While Loop To Print ASCII Value in C++. Following is an example of how to print the ASCII value of a character entered by the user in C++ using a while loop. cout << …

  6. How to loop through certain Ascii characters in c++

    Sep 21, 2021 · I only want to loop through certain Ascii characters and not all are directly next to each other . For example I only want to loop from char '1 to 7' and then from char '? to F'. I …

  7. Print given sentence into its equivalent ASCII form

    Feb 8, 2024 · Following the above steps, we can achieve the equivalent ASCII form of a given sentence/string. Time Complexity: O (N), as we are using a loop to traverse N times. Where N …

  8. C++ program to print the ASCII values of all characters of a string

    In this C++ tutorial, we will learn how to print the ASCII values of all characters of a string. Our program will take one string as an input from the user and print out the ASCII values of all …

  9. c++ - How to convert a string to ASCII ? | DaniWeb - DaniWeb

    Feb 23, 2010 · cout << "The ASCII for this word is:\n"; while (word[x] != '\0') // While the string isn't at the end... cout << int(word[x]); // Transform the char to int . x++; } . cout << "\n"; return 0; } …

  10. Write a c program to print all the ASCII values and their …

    Write a c program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255. - L4Q4_ASCII_Value_From_0_To_255.c

  11. Some results have been removed
Refresh