It is indeed for school. The full code is hosted at GitHub - LinuxDragon57/ClassRoster-WGU: This is the program for C867 at WGU.. I’ve tried using delete, but there’s still a segmentation fault as soon as the program exectues that line of code. At first, that line read, delete classRosterArray[--classRosterSize];
, for I was just performing two operations with one line of code unlike now.
I do need to get rid of the student altogether, though, because later on I am going to have to call a printAll method
. You can read main to see what the program does - spoiler, it’s a worthless program of insanity just cause school can make it that way. Honestly I didn’t know what {} does. I just saw that someone else used it in their code and I thought I’d try it since delete wasn’t working for me. I figured I’d figure out what it did when I tried to use it, but I was still working on that when you told me xD.