Requirement: enter an English sentence to flip the word order in the sentence. But the order in words remains unchanged. Words in a sentence are separated by spaces. For simplicity, punctuation marks are processed like normal letters. For example, enter "I am a student. ", student is output. a am I answer: [cpp] void StrOL (void) {int I, j, len; int start = 0, end = 0; char buf; for (I = 0; I <maxline; I ++) {len = strlen (xx [I]); // This loop is used to set non-letter data in row data to space characters, for example, I am a student. after I am a student t, it contains spaces for (j = 0; j <len; j ++) {if (! Isalpha (xx [I] [j]) & xx [I] [j]! = '') {Xx [I] [j] ='';} strrev (xx [I]); // string inversion function, which invert the entire data of the row, change to tneduts a ma I // the function of this program is to invert the small string separated by spaces (j = 0; j <len; j ++) {if (isalpha (xx [I] [j]) {start = j; // at this time, the start Pointer Points to t while (isalpha (xx [I] [j]) j ++; end = J-1; // The end Pointer Points to s while (start <end) {www.2cto.com buf = xx [I] [start]; xx [I] [start] = xx [I] [end]; xx [I] [end] = buf; start ++; end --;}}}}}