#include #include using namespace std; void myswap_string(string &a, string &b) { string temp; temp=a; a=b; b=temp; return; } void bubble_sort_string(string array[], int size){ bool swapped=false; do{ // Reset swapped flag. swapped=false; // Check all the items in the array. // Comparing one to the next neighbor. for(int i=0;iarray[i+1]) { myswap_string(array[i],array[i+1]); swapped=true; } } }while(swapped); } void display_words(string array[], int size){ for(int i=0;i