Several ways. You could separate each of them into their single translated integer values, while storing each of nine letters into a separate declared variable.
Or I would probably create a character array/vector for every set of 3, and for each array/vector, go through its elements and add them up respectively.
Btw are you asking to get the size of each ascii? Or are you trying to determine their binary or hex value as defined in C++?