So I was watching a lecture about allocating memory and the instructor gave a challenge where i have to make a program that goes through the alphabet a - z
using classes,objects,arrays,pointers, and new. I figured out how to loop it through the object array 26 times. But it outputs 'a' 26 times instead of going through the alphabet like i wanted. the instructor said that if you do
char c = 'a'; and c++; The 'a' jumps to 'b' and so forth(as a hint to the challenge). I've tried my best to do this challenge on my own based on what i've learned. When i think about it I could probably just write this without the for loop if i do setName('a') 25 more times all the way to z and call speak 26 times. But i find that inefficient. So How do i fix my source so it goes through the alphabet using char = 'a'; and c++; somehow ?