Split string into array of chars

c++, split, string

Solution

string a = "hello"; 
cout << a[1];

I hope that explains it

Problem

I'm writing a program that requires a string to be inputted, then broken up into individual letters. Essentially, I need help finding a way to turn "string" into `["s","t","r","i","n","g"]`. The strings are also stored using the string data type instead of just an array of chars by default. I would like to keep it that way and avoid char but will use it if necessary.

Original source