一个简单的任务,但我不记得C++的语法.
int array[n];
我需要获取数组的最后5个对象.
array.slice(array.length - 5, 1)??
c++ arrays algorithm
algorithm ×1
arrays ×1
c++ ×1