Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Define an integer array with six elements and assign values, and then sort it by bubble sorting method, showing the results of each round of sorting.
Define an integer array with six elements and assign values, and then sort it by bubble sorting method, showing the results of each round of sorting.
# include & ltiostream & gt# define lenintmain () {intnarray [len] using the namespace std; for(int I = 0; I< leni++) CIN > & gtnArray[I]; Cout & lt& lt "The original data is:"