1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#include <cstdlib>
#include <iostream>
using namespace std;
void copy_int_array(int A[], int B[], int min, int max);
int i, n;
for (i=0; i<n; i++){
cout<<endl<<"Array A is Copied to Array B"<<endl;
B[i]=A[i];
}
const int MAX_N=1000;
int main()
{
int NA=10;
int A[MAX_N]={5,2,8,6,1,4,7,3,9,0};
int B[MAX_N];
copy_int_array(A,B,0,9);
copy_int_array(A,B,0,9);
cout<<B[];
system("PAUSE");
return EXIT_SUCCESS;
}
|