I am designing a tennis scoring system and I need to store dynamically the names of the 2 players. I have been told that I should include 2 parameters to my constructor. But I really don’t know how to do it. I have been told to try something like:
for storing the player names define 2 member variables of type TBuf<Int n> if you will limit length of the player names to n characters or use HBufC* variables. In the second case the lenght could be determined or changed during code execution.
You can of course pass those names as parameters in constructor of Tennis class if you know them during its construction.