Split string into array of chars
Assuming you already have the string inputted:
string s("string");
vector<char> v(s.begin(), s.end());
This will fill the vector v
with the characters from a string.
string a = "hello";
cout << a[1];
I hope that explains it