void reverse(char a[]) { int len = strlen(a); for(int i = 0; i <= len/2; i++) { char temp; temp = a[i]; a[i] = a[len-1-i]; a[len-1-i] = temp; } }
逆置数组元素
猜你喜欢
转载自www.cnblogs.com/zhang-zsq/p/12788287.html
今日推荐
周排行