Hey Everyone
Right now I am writing a file that needs a queue defined as a class. The queue has a function called 'front' that should return a reference to the front element of the queue. Needs to be a reference so the element can be altered. Bloc is a defined struck to hold stock transactions.
I have tried :
bloc queue::front()
{
return (&queuearray[first])
}
or:
bloc &rtemp = queuearray[first]
The error that comes back is...
error:conversion from 'block*' to non-scalar type 'bloc' requested
Any idea whats wrong?