如题所述
第1个回答 2007-05-16
char a[7]={'a','b','c','d','e','f'}
char temp[7];
for(int i=0; i<7; i++) temp[i]=a[6-i];
for(int i=0; i<7; i++) a[i]=temp[i];
char temp[7];
for(int i=0; i<7; i++) temp[i]=a[6-i];
for(int i=0; i<7; i++) a[i]=temp[i];