#include //needed if C-String functions #include //to use C++ string object #include using namespace std; const int SIZE = 40; int main() { char string2[] = {'M', 'y',' ', 'd', 'o', 'g','\0'}; int numbers[] = {1, 2, 3, 4, 5}; char myCstring[] = "The gray dog "; cout << endl<< myCstring << endl; cout << numbers; for (int k=0; k < 5; k++) cout << "\n" << *(numbers+k); cout << endl; cout << string2; cout << endl; char *ptr = myCstring; cout << ptr +1 << endl; string words[4]= {"How", "Dry", "am", "I"}; string *wordsPtr = words; for (int k = 0; k < 4; k++) cout << *(wordsPtr + k) << " "; cout << endl << words[1][0]; //shows how to access a letter (char) in the string object }