64,654
社区成员
发帖
与我相关
我的任务
分享
#include<iostream>
using namespace std;
#define arrize 10
void inverseList(int a[],int n)
{
const int COUNT(n / 2);
int temp,k=0;
for(int i=n-1;i >= COUNT; i--)
{
temp=a[i];
a[i]=a[k];
a[k]=temp;
k++;
}
}