I am trying to convert a string into a vector
#include <iostream>
#include <vector>
using namespace std;
int main() {
string nums = "1,+2,-3";
vector<int> a;
}
How do I convert nums into a vector of integers? An example of this in python would be:
string = 1,223,132,34
list = string.split(",")