Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Вывести ASCII-таблицу по 16 символов в строке.
- */
- #include <iostream>
- using std::cout;
- using std::cin;
- using std::endl;
- void main()
- {
- setlocale(LC_ALL, "Russian");
- int i = 0;
- char ch = 0;
- while (i < 255) // в ASCII (Win-1251) всего 256 символов (от 0 до 255)
- {
- i++;
- ch++;
- if ((i % 16) == 0) cout << endl;
- else cout << ch << " ";
- }
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement