Successfully created a string vector for storing the entries. A while loop asks for ToDo Items and a SHOW key shows the user all items currently stored in the string vector. For easier access to the items I have an int just displays “running” numbers in fron the items.
After user has added few items he can type DEL what brings him to the deletion mode:
(Here I like to enter 2 what will delete Stop Smoking and rearrange the array to fill
the gap)

Now I like to get the number the user enteres, decrement with 1 to match to the
vector array index number and delete the entry but whats the best approach to do this?
This is how I get the items added to the string vector:
int taskNumber = 1;
cout<<"New task: ";
getline (cin,newTaskEntry);
taskVector.push_back(newTaskEntry);
cout<<"TOTAL TASKS IN YOUR INBOX: "<<taskVector.size()<<endl;
This is how I show the user all entries:
for (vector<string>::iterator i = taskVector.begin(); i != taskVector.end(); ++i)
{
cout<<taskNumber<<" ";
cout<<*i<<endl;
taskNumber = taskNumber +1;
}
Do just: