例如個array係 int arrayA={1,2,4,5},
我想copy去另一個array(例如arrayB),用recursion
我可以點做??
個function係有三個parameter
int copyarry(int A, int B, int len)
PS. copy次序要係順序, 我試過係copy左去B, 但係係倒序左
thx!!
更新1:
My question translated to English I have a question about using recursion copy the array to another array For instance the arrayA(5) and arrayB(5) The content of ArrayA is arrayA={1,2,4,5} I want to copy the content of arrayA to arrayB
更新2:
But I only can do the result of in reverse order For instance, arrayB={5,4,3,2,1} The function named copyarray (int A, int B, int len), int A, int b and int len are the paremeters for this function plz help!!