In this section you will learn
to remove an object from a particular position specified by a index
value. Here is an example that provides the
usage of the remove() method in more detail.
Create a class "
VecRemove" with an vector.
it with the integer objects using add(int,object) method. Now
remove an object from a particular position specified by a index value
using the remove() method. Specify the index position from where you want
to remove an object.
The Output Of The Example is as shown:
Rs. 20,000 US$ 300
Today: Rs. 10,000 US$150
Course Duration: 30 hrs
Posted on: February 28, 2008 If you enjoyed this post then why not add us on Google+? Add us to your Circles