题目描述
数组反转
样例
blablabla
算法1
(reverse翻转)
include [HTML_REMOVED]
include [HTML_REMOVED]
using namespace std;
void rreverse(int a[], int size)
{
reverse(a,a+size);
}
int main()
{
int n,size;
cin>>n>>size;
int a[n];
for(int i=0;i[HTML_REMOVED]>a[i];
rreverse(a,size);
for(int i=0;i<n;i++)
cout<<a[i]<<” “;
return 0;
}