I need help finding a bug in my program. Whenever I run it it keeps saying Debug Assertion Failed. Expression:_block_type_is_valid(phead- nblockuse).
Here's the code:
http://pastebin.com/0vVciqZS

It looks to me that your problem is in the destructor for Toll Administrator. You're trying to delete arrays that haven't been allocated with the new operator.

Since you seem to want to delete items from the arrays, making them dunamic, you might be better off using vectors instead, which are designed to be dynamic.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.