/****************************************************************************** * This program reads bytes from STDIN and prints them in decimal format. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ #include "Utils.hpp" #include #include using namespace std; int main(int argc, char **argv) { unsigned char c; int count = 0; while (Utils::getbytes(cin, c)) { cout << int(c) << " "; ++count; if (count % 20 == 0) { cout << endl; } } if (count % 20 != 0) { cout << endl; } return 0; }