Srce and trgt are both arrays, they are dummy variables in the copy_arr() function. This is how I defined them in the main() portion of the program:
double source[SIZE] = {1.5, 2.4, 3.3, 4.2, 5.1};
double target1[SIZE];
double target2[SIZE];
Should I define them within the copy_arr function as well? If so, how?
Main Topics
Browse All Topics





by: ozoPosted on 2009-04-02 at 18:15:54ID: 24055972
what are srce and trgt?
they need to be arrays or pointers in in order for srce[i] or trgt[i] to make any sense