I read cprogramming.com's tutorial on the vector class, and I understand how they work. However, I encountered yet another problem while programming a console based address book.
I want the user to be able to delete a contact from a vector of contacts, and (obviously) specify which contact to delete.
I know there is a clear() function already provided to the vector class, and I was wondering if there is any way to delete specific elements of the vector using the [] operators?
I'm really confused on how to accomplish this, so any help would be appreciated. I don't want to post an entire program here get an answer to a simple question, so if anyone wants/needs to see the code, contact me.
Also, is there a function provided for sorting the vector in any way? If not it's no big deal because I'm pretty sure I could write one for my needs, but it would be handy to have a reference. (I've only glanced over basic sorting algorithms, such as bubble sort and all that.)
Ever since I registered for this board and started using it (like two days ago) I've been making tremendous progress towards my programming education. ^^ I thank you all. This project has been a great learning experience so far.
Thankee. =)