Hi guys, I need help. The only problem with this code is it won't call my destructor. Destructor is suppose to run automatically even though you don't call it. However, I don't know why the destructor would run.
Enter the size of the array:
3
Newsize: 3
0 Enter car name: A
1 Enter car name: B
2 Enter car name: C
A
B
C
Enter the name of the car you want to search: A
CAR FOUND in parking lot number: 0 A
sh: pause: not found
Deleting memory
Process returned 0 (0x0) execution time : 6.353 s
Press ENTER to continue.
Ohh I found it Athar! Well the "system ("pause");" was messing it up for me. I deleted the "system ("pause");" and ran without debugging. It ran like a champ.