Displaying data from 2d array and stringstream
问题 I'm writing a program that reads data from a file that looks like: W Z W Y W Y W W Y W Y Z W Z Y Z W W W Y W Y W Z Y W Z W Y Y Z W Z Z Y Z Z W W W Y Y Y Z W Z W Z Z Y Z Z W W W Y Y Y Z W Z W Z Z Y Z Z W W W Y Y Y Z W These characters (W, Y, or Z) are parsed using a stringstream and stored in a 2D array that's 5x15. Now I'm having trouble counting the amount of times that each character appears on each line . I've tried multiple ways of achieving this by using counter variables in my function