If string is just an array of chars, then is it considered bad coding to directly access an index of a string? for example...
string test = "Hello";
cout << text.[0];
int lenOfTest = (int)test.length();
for(int i = 0; i < lenOfTest; i++ ){
cout << test[i];
}
text.[0], I guess that is some sort of typostd::stringis not just an array of characters. It's a standard class, which overloads[]to access the elements of the string.