Forum: C++ Jun 25th, 2006 |
| Replies: 5 Views: 4,461 I see, so in essence i created an extra pointer, one that wasn't needed. I had wondered about that, I must have misinterpreted the first book i read. Thanks a bunch for taking the time to clear... |
Forum: C++ Jun 25th, 2006 |
| Replies: 5 Views: 4,461 Well, I moved the delete [] catalogue line to the end of the program and now the thing runs perfectly.
Thanks Salem! I new it would be something simple and painfully obvious when you look at... |
Forum: C++ Jun 25th, 2006 |
| Replies: 5 Views: 4,461 Hi Salem, Thanks for the quick reply. *ptr is something from a different book, it said pointer was best way to access dynamic arrays.
I have run the program many times and not entered a space... |
Forum: C++ Jun 24th, 2006 |
| Replies: 5 Views: 4,461 I am new to C++ and working through SAMS C++ primer. one of the excercies involves creating a dynamic array of structures to catalogue car information. I have the following code almost working and... |