Need a project done?

C++ Programming Developer

Search This Blog

Program to Print ASCII TABLE in C++


/*
Program to Print ASCII TABLE in C++
*/

#include <iostream>
using namespace std;

void main()
{
for (int i = 0; i<256; i++)
cout << i << "\t" << char (i) << endl;
}

//------------------------------------------------------------------OR---------------------------------------------------------------


#include <iostream>
using namespace std;

void main()
{
for (int i = 0; i<256; i++)
cout << i << "\t" << static_cast<char> (i) << endl;
}

"Don't let anyone ever make you feel like you don't deserve what you want."