I need help to find out how to read a string like
cout << "Helloworld"
and put the characters into an array so it would look like
any help would be great.
Reading a string from a file or from your program?
If you are using cout, meaning it is from your program, then you can just make the array manually because you know what the output is.
using namespace std;
cout << "Enter the string : " ;
for (size_t i=0; i<=str.size()-1; i++)
cout << str[i] << endl;
A string itself is an array of characters