17 Reputation Points
Ranked #1K
- Strength to Increase Rep
- +2
- Strength to Decrease Rep
- -0
100% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
0 Endorsements
Ranked #27.9K
Hi, I'm having an issue in my program when I try to call delete in my destructor. Can someone take a look and see what I doing wrong? I've looked it over and over but I just can't figure out what's wrong. destructor code: [CODE] StudentRecord::~StudentRecord(){ // Destructor delete[] m_firstName; … | |
I'm writing a program that takes records(first and last name,id and mark), reads them from a file and inserts the information in StudentRecord structures. For some reason,when I go to list the information, the first and last name strings in each structures are all the same. The first and last … |