Top "Erase" questions

This tag refers to the process of removing or deleting data, text, files, or memory.

How do I erase an element from std::vector<> by index?

I have a std::vector<int>, and I want to delete the n'th element. How do I do …

c++ stl vector erase
C++ Erase vector element by value rather than by position?

vector<int> myVector; and lets say the values in the vector are this (in this order): 5 9 2 8 0 7 If I …

c++ vector stl erase erase-remove-idiom
Erase the current printed console line

How can I erase the current printed console line in C? I am working on a Linux system. For example …

c linux console erase
Clearing the terminal screen?

I'm reading data from 9 different sensors for my robot and I need to display them all steadily, in the same …

terminal arduino refresh erase
Erasing elements from a vector

I want to clear a element from a vector using the erase method. But the problem here is that the …

c++ vector stl erase
HTML how to clear input using javascript?

I have this INPUT, it will clear everytime we click inside of it. The problem: I want to clear only …

javascript html input erase
Erase whole array Python

How do I erase a whole array, leaving it with no items? I want to do this so I can …

python arrays erase
Remove elements of a vector inside the loop

I know that there are similar questions to this one, but I didn’t manage to find the way on …

c++ vector erase
How to erase & delete pointers to objects stored in a vector?

I have a vector that stores pointers to many objects instantiated dynamically, and I'm trying to iterate through the vector …

c++ visual-c++ vector iterator erase
How to delete "px" from 245px

Whats a simple way to delete the last two characters of a string?

javascript string variables erase