My struggle against templates continues. Say I have this code
AutoPtr< int > scores( new int[ 10 ] );
Then I have the following loop.
for ( int i = 0; i < NUM_SCORES; i++ )
{
cout << scores[ i ] = i * 2;
}
Do I need to overload the = operator as well as the << and the [] operators?? How would the << operator look? I already have done the [] operator overload. Thanks