Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include "lab_7_Header.h"
  2.  
  3. void st(int(&a)[256][256])
  4. {
  5. char b;
  6. char m = 'y';
  7. int c;
  8. while (m == 'y')
  9. {
  10. cout << " Укажите символ, для которого необходимо предоставить статистику: ";
  11. cin >> b;
  12. c = (int)(b);
  13. for (int i = 0; i <= 8; i++)
  14. {
  15. for (int j = 0; j < 32; j++)
  16. {
  17. if ((char)(i * 32 + j) == '\n') { cout << '_' << ' '; }
  18. else { cout << (char)(i * 32 + j) << ' '; }
  19. }
  20. cout << endl;
  21. for (int k = 0; k < 32; k++)
  22. {
  23. cout << a[c][i * 32 + k] << ' ';
  24. }
  25. cout << endl;
  26. cout << endl;
  27. }
  28. cout << " Продолжить вывод статистики? (y/n): ";
  29. cin >> m;
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement