2. (10 scores)

2. (10 scores)#

According to the following output results, fill in the blanks in the following programs.

 1Output:
 21 3
 32 2
 43 1
 5A 1
 6B 2
 7C 3
 8a 3
 9b 2
10c 1
 1#include <cstdlib>
 2#include <iostream>
 3
 4using namespace std;
 5
 6void hist(/* (1) */) {
 7  int n;
 8  int hist[256] = /* (2) */;
 9  while (*src != /* (3) */) {
10    hist[/* (4) */]++;
11  }
12  for (int i = 0; i < 256; i++) {
13    if (hist[i] != 0) {
14      cout << /* (5) */ << endl;
15    }
16  }
17}
18
19auto main() -> int {
20  char const* src = "aaabbc111223ABBCCC";
21  hist(src);
22  return 0;
23}