Assume that Disk and Tower are both classes. Furthermore assume the following header and constructor for class Triad:
I have already included <iostream>, <string>, and <iomanip>, though I'm not so sure that's making any difference here.
friend std::ostream& operator <<(std::ostream& lhs, Triad& rhs);
Triad(int diskCount = 3);
void run(Tower* source, Tower* waypoint, Tower* dest, int toMove);
void sort_disks(); // sorts disks from greatest to least
disks = new Disk[diskNo];
What I want to ask is when that constructor is called with diskCount being 2 or higher, why in the world would disks not get more than one element?
Thank you in advance.