Hey all, I'm having trouble with an assignment for my C++ class.
The .pdf has the assignment parameters, and the .cpp file has what I've written so far.
Right now I've written the program enough to make sure the two strings (LastName and FirstName) get swapped correctly and put into the main string (FullName). Then I'm trying to test and make sure I can output them based on the subscript, but every time I run the program it shuts down.
I'm just wondering what I need to do.
I can't do:
const int contacts = numOfContacts;
.
.
.
FullName = new string[numOfContacts]
Because that just creates errors and such.
I think I need something related to that to predefine the number of elements.
Any help with this would be wonderful. :)
I swear the answer is right under my nose, and when I find out what I'm doing wrong, I'm going to feel like a dork. :P