#include #include #include //for class string using namespace std; int main() { struct verse { string number; string action; //what the little one does }; verse a[] { //an array of structures {"one", "suck his thumb"}, {"two", "tie his shoe"}, {"three", "climb a tree"}, {"four", "shut the door"}, {"five", "take a dive"}, {"six", "pick up sticks"}, {"seven", "pray to heaven"}, {"eight", "roller skate"}, //or "check the date" {"nine", "check the time"}, {"ten", "shout \"The End\""} //quotes within quotes }; int n {size(a)}; //the number of verses for (int i {0}; i < n; ++i) { for (int j {0}; j < 3; ++j) { cout << "The ants go marching " << a[i].number << " by " << a[i].number << ","; if (j < 2) { cout << " hurrah, hurrah"; } cout << "\n"; } cout << "The little one stops to " << a[i].action << "\n" << "And they all go marching down to the ground\n" << "To get out of the rain, BOOM, BOOM, BOOM!\n\n"; } return EXIT_SUCCESS; }