0
Can someone help me?
https://code.sololearn.com/cENZQy8EDfMy/?ref=app I want the program to compile this way: Object letter is:a Object letter is:b Object letter is:c
3 ответов
+ 1
You can use something like .setLetter(string(1, 'a'+i))
Btw, getLetter is a misleading token as the function doesn't give you the letter but prints it
Also, why dynamically allocate a fixed lenght array when you can do it statically?
+ 1
Thx i will try your ideas now