README.md
December 5, 2022 ยท View on GitHub
Description
Prints ascii table.
More Info
No input!
just an ascii table.
prints ascii table!
none!
| Submitted On | |
| By | Aaron M. Ataman |
| Level | Beginner |
| User Rating | 3.7 (11 globes from 3 users) |
| Compatibility | C++ (general), Microsoft Visual C++ |
| Category | Miscellaneous |
| World | C / C++ |
| Archive File |
API Declarations
iostream.h
Source Code
/*
Aaron M. Ataman
11jan01
ascii.cpp
This simple program uses
a nested for loop to format
and display the ASCII standard
of character values.
Input: None
Output: ASCII table
Processing:
Nested for loop structure
allows simple, efficent
displaying and formatting
of the ASCII table.
*/
#include <iostream.h> // necissary for i/o
void printASCII()
{ // begin printASCII
int i,j;
for (i=32;i<255;i+=7)
{
for(j=0;j<7;j++)
{
cout << i+j << ": " << char(i+j) << " ";
}
cout << endl; // carrige return (for formatting)
}// end printASCII
}
void main()
{
printASCII();
}