Hello, I was wondering how I would be able to remove a value from a list.
I am working on a to-do list, but there are some problems since I am quite new to working with c++.
Here is the code that I am having trouble with in the program -```c++
#include <iostream>
#include <list>
#include <stdlib.h>
#include <windows.h>
std::list std::string lToDo;
int removeChoice;
int main() {
//Printing the list
for (std::string item : lToDo)
std::cout << counter++ << ". " << item << "\n";
std::cout << "What would you like to remove? ";
std::cin >> removeChoice;
}```
Now I don't really know what to write next in the code, which is the part that will actually remove something from the list.
So if anyone could help me with this, then that would be awesome!