All pastes #225999 Raw Edit

Someone

public text v1 · immutable
#225999 ·published 2006-10-28 07:36 UTC
rendered paste body
//read() returns a pointer to an array of doubles
... 
  return *arrayOfDoubles;
}
void Foo:bar()
{
  double *arr = read( 1 );  // one is for a loop for how many to read
  int size = sizeof( arr );  
  for ( int i = 0; i < size; i++ )
    cout << arr[ i ] << endl;
  
  vector<double> One( size, arr );
  for ( int i = 0; i < size; i++ )
    cout << One.at( i ) << endl;
}