Thursday, April 4, 2013

C++ program to find ASCII Code for Characters and numbers

C++ Program Write a Program to Enter Char or Number and Check its ASCII Code



#include <iostream>
using namespace std;

int main(){
 char ascii;
 int numeric;
 cout << "Give character: ";
 cin >> ascii;
 cout << "Its ascii value is: " << (int) ascii << endl;
 cout << "Give a number to convert to ascii: ";
 cin >> numeric;
 cout << "The ascii value of " << numeric << " is " << (char) numeric;
 return 0;
}


OUTPUT:
Give character: d
Its ascii value is: 100
Give a number to convert to ascii: 25
The ascii value of 25 is  


---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--------------------------------------

How to find ASCII value of character in c
ASCII code and character variables - C++ Tutorial
Getting ASCII Code in C++ - C++
ASCII in the console...‎ 
a little help please‎ 
converting char to ascii code‎ 
ASCII Character code advancement, in a c‎++ 
c++ - printing ASCII codes of characters stored 
How to return the ASCII code value of a character in C++
Searches related to ASCII Code for Characters in C++ program
c++ convert char to ascii code
ascii table c++
extended ascii c++
unicode characters c++
special characters c++
ascii characters c++
ascii characters visual c++
ascii characters c++
C++ Program Write a Program to Enter Char and Check its ASCII Code How to find ASCII value of character in c++ c++ - Scanning ascii value of each character of a string 
Get ASCII character from number in C/C++

Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Stuff I use to make videos

Windows notebook - http://amzn.to/2ADOPrW

Apple MacBook Pro - http://amzn.to/2AC0WG2

Microphone - http://amzn.to/2AC1kV0

notebook mouse - http://amzn.to/2BmeZ2d