New Programming
The Blog will contain commonly used programs and some complicated too.
Sunday, November 2, 2014
C++ code that shows ASCII values corresponding to their Decimal values
//ASCII code generation
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
char ascii;
cout << "Decimal value............ASCII value\n";
for( int i=0 ; i<=127 ; i++ )
{
ascii=i;
cout <<setw(13) << i
<< "............"
<< ascii
<< endl;
}
return 0;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment