i have two classes namely Flight
and Runway
. Now i am trying to pass an array of these objects as parameter to a function.
void fun(Flight ptr1[],Runway ptr2[])
{
...
...
}
ptr1 should point to an array of Flight objects and ptr2 should point to an array of Runway objects. Now inside this function fun() how do i access members of these classes. Also can i use ptr1++ or ptr2++ to move between the objects?? Also how would i be calling this func??something like this -
Flight array1[5];
Runway array2[2];
fun(array1,array2);