#include <iostream>
#include <numeric>
using namespace std;
int main(void)
{
int arr1[] = {1, 3, 9, 4} ;
int arr2[4] ;
adjacent_difference(arr1,arr1+sizeof(arr1)/sizeof(*arr1),arr2);
for(int i=0;i<sizeof(arr2)/sizeof(*arr2);i++)
{
cout<<arr2[i]<<' ';
}
cout<<endl;
return 0;
}
adjacent_difference的用法
最新推荐文章于 2022-12-27 08:30:00 发布