0
Print ASCII table by using while loop?
Please help me :)
1 Antwort
+ 2
#include <iostream>
using namespace std;
int main()
{
int c(0);
while (c < 256)
{
cout << c << " = "<< static_cast<char>(c) << "\t\t";
if (c % 4 == 0) cout << '\n';
++c;
}
cout << '\n';
return 0;
}