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

19th Mar 2021, 7:55 PM
Cristian Dumitrache
Cristian Dumitrache - avatar
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?
19th Mar 2021, 8:10 PM
Angelo
Angelo - avatar
+ 1
Thx i will try your ideas now
19th Mar 2021, 8:21 PM
Cristian Dumitrache
Cristian Dumitrache - avatar