shikharrai114p41vpc shikharrai114p41vpc
  • 10-10-2018
  • Computers and Technology
contestada

Write a program in c++ to display the character by entering its ASCII value.
example : Enter ASCII value = 52
Character = 4.

Respuesta :

tonb
tonb tonb
  • 10-10-2018

You could do it like this:

#include <iostream>


int main()

{

int c;

do

{

 std::cout << "Enter ASCII value (0 to exit): ";

 std::cin >> c;

 std::cout << "Character = " << char(c) << std::endl;

} while (c > 0);

}

Answer Link

Otras preguntas

why did artists use pinhole cameras during the renaissance?
Write -2x^2(-5x^2+4x^3)
what percent of the United States population dies from heart disease, cancer, and stroke. A. 20 B. 40 C. 60 D. 80
lead hs a density of 11.3 g/cm3 and a mass of 282.5 g . what is its volume?
a line passes through (2, –1) and (8, 4). a. choose the correct equation for the line in point-slope form. b. what is the equation rewritten in standard form?
which unit rate is the lowest price per ounce? 22 ounces of potato chips for 3.49
3/5 + 3/7 = it a Fraction problem
what property is this, 5x23x2
Which statement is most true concerning carbon in sediments and rocks?
Which Florentine sculptor created the first free-standing nude statue in western Europe since classical times? A. Brunelleschi B. Donatello C. Ghiberti D.