I would like to convert an string into a vector, so that it looks like the following:
string number = "0110";
vector < int > Vec;
with the result:
Vec[0] = 0
Vec[1] = 1
Vec[2] = 1
Vec[3] = 0
My problem is that the number starts with a 0, so using % doesn't seem to work if i first transform my string to an int
Vec[0]the most significant digit from your string? Or your least significant? Hard to tell with that palindrome you got there.