/********************************************************************************** *** FILE: mo_friend_main.cpp *** DATE: Jan 21, 2004 *** AUTHOR: Daniel Dementiev *** GOAL: This is a short example illustrating friends in class definition. *** Designed for IST482 class. **********************************************************************************/ #include #include "mo_friend.h" using namespace std; /* ------------------------------------------------------------------------------ */ void main() { int i, j; MovingObject tanks[10]; // calling the default constructors for(i=0;i<10;i++){ j = 1 + rand()%10; while( j-- ) tanks[i].speed_up(); } cout<<"The fastest tank has index #"<