Create a C++ Program to output the ASCII Table it should look like this: ASCIIOut.txt If you
Fantastic news! We've Found the answer you've been seeking!
Question:
Create a C++ Program to output the ASCII Table
it should look like this:
ASCIIOut.txt
If you print some char values weird things happen to thescreen. You may need to use the isprint(char )function;
Can you make the spacing the same as mine?
Also, if you are bored can you print out the hexadecimalequivalent of the decimal values?
this is my code so far.
#include
#include
using namespace std;
vector
int main() {
cout << " ASCII Table" << endl < bool myBool = false; for (char i = 0; i < 127; ++i) { if(isprint(i)) cout << i <<" "; cout << static_cast } return 0; }
Related Book For
Posted Date: