Question: C++ Programming. For the following, I don't need Examples just a few sentence response. Oh my goodness, I looked right past this on the schedule--sorry!
C++ Programming. For the following, I don't need Examples just a few sentence response.
Oh my goodness, I looked right past this on the schedule--sorry! My muddiest point in the past section has certainly been objecting slicing in arrays of a base class. Essentially, when I try to make an array of a base class and fill it with different subclasses, the objects don't retain their subclass attributes/functions. I made sure to put them in as references to the base class and everything, but it never worked. I was able to replace the array with a vector, try the same thing, and it worked perfectly--so my problem is basically solved. But it would be nice to know the proper way to get different subclasses into the same array of their base class. How can I overcome this problem stated above?
Hi everybody, My muddiest point now is on Multi-Dimensional char Arrays. For example, char names[25][25]; Do both dimensions get a null character? How does it fill, does it fill up the first dimension first, and then the second, or does it alternate between dimensions while filling? How do you get the characters out in the right order to create the proper string? Thanks!
How can I overcome this problem stated above?
I struggled hard with this last project. I watched several videos and had a few small OOB programs going. Unfortunately, with the functionality of having a user interface as well as the classes, I failed miserably getting everything even planned out.
How can I overcome this problem stated above?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
