hey again, thanks for the help on the last post in the book i'm learning from one of the tasks it has you do is to create a queue of char. can you help me make sense of this passage: i'll paraphrase "note the loop starts at 1 . . . the first element at offset 0 was used as a marker to indicate an empty queue" what's this marker? here's the code in question, i'll attach the rest. thanks
Code:
void c_q::mf_showq(void)
{
int x;
if(back==0)
cout<<"Q is empty"<<endl;
else
{
for(x=1;x<=back;x++
{
cout<<data[x]<<tab;
}
cout<<endl<<endl;
}
}