Program to show the ascii value of characters, C/C++ Programming

Program to show the ascii value of characters:

int main()

{

                int one_char;

                cout << "\nEnter a character: ";

                one_char = getch();

                cout << "\nThe character you entered was "

             << (char) one_char << '\n';

                cout << " Its ASCII value is "<< (int) one_char << '\n';

 

                return 0;

}

 

Posted Date: 10/18/2012 7:58:36 AM | Location : United States







Related Discussions:- Program to show the ascii value of characters, Assignment Help, Ask Question on Program to show the ascii value of characters, Get Answer, Expert's Help, Program to show the ascii value of characters Discussions

Write discussion on Program to show the ascii value of characters
Your posts are moderated
Related Questions
This is what I need help with. "Create a program creates an interface allowing the user to select from some other programs I have made one being a money converter and the other ca

I need a client-server architecture program for windows OS (minimum support: Win 7),. the agent program will run as a background process and perform certain tasks every X time, and

Vogels approximation transportation problem in c language source code

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

C Program for REMOVING CHAR WHICH U WANT void main() {           int i,j;           char a[100],r;           clrscr();           for(i=0;i

world wide web commands

How do I allocate multidimensional arrays by new? A: There are several ways to do this, based on how flexible you wish the array sizing to be. On one acute, if you know all the

1. Using Visual C++ and your OpenGL configured environment, write an application that displays a “unique” graphical scene that you designed and coded for this course. What yo

Write a program to get the largest element in an array using Function? # include int largest(int b[],int); main() { int lar,a[5]={12,2,36,40,5}; lar=largest(a,n); printf("

write an algorithm that reads a postive integer n and then finds and prints the sum of all integers between 1 and n (inclusive) that are disvisible by 7. please write this using c