Arrange the order of the horse into an array of content, and returned the horse after several
Group, the function of exchange content as a function of two variables (swap),
To complete array content inversion, the purpose of the
2. The above function, accomplish the transmission of parameters in the form of passing a pointer,
Inversion and content in the function pointer to complete the order, the purpose of the
Write a main program to test these two functions
Write a function in another. CPP files
The function declared (function declaration) written in another. H file
CodePudding user response:
What bosses can save the childrenCodePudding user response:
void array_Invert (int v_array [], int v_iCount)
{
Int iTmp=v_iCount - 1;
for (int i=0; i{
Swap (v_array [I], v_array [iTmp]);
ITmp -;
}
}