建立两个函数,第一个用来颠倒数组,第二个用来输出数组。
代码如下:
#include<iostream>
using namespace std;
//颠倒数组
int* reverse(int *list,int size)
{
int i,t;
建立两个函数,第一个用来颠倒数组,第二个用来输出数组。
代码如下:
#include<iostream>
using namespace std;
//颠倒数组
int* reverse(int *list,int size)
{
int i,t;