Iterating through the contents of an array with a for loop

What am missing? I only get the string message
Shouldn't I get something else too?

#include <iostream>
#include <string>
#include <array>
using namespace std;

int main (void)
{
int index = 0;
string message = "hello all!";
for (index = 0; index < message.length(); index ++)
{
cout << message[index];
}

cout << endl;

}
Shouldn't I get something else too?

Such as?

Is there a reason you're printing each character instead of just printing the string?

Now I understand what they are having us do this for thanks
Topic archived. No new replies allowed.