I'm assuming the parameter passed into the dequeue method is a reference one which will assign the value being dequeued into that variable (which you didn't include in the specification)? Remember to dequeue is to remove the first item in the queue. Reread what your methods do to double check.

Also, your output statement has 3 variables in the cout statement, you know you'll have to have 3 numbers.

Looks good here too.
>> but on line 6 I got confused.

What happened to line 5? And what do these numbers represent? What's in the queue or what's in the variables?

>> I got 4 5

Again, "got" needs to be more specific, and read what jonsca said too. We're assuming dequeue means "take it out of the queue and stick it in the variable. Your queue contains only 4's, so take one out and stick it in num1.

For the next line, take the remaining 4 out and stick it in num2, so num1 and num2 now contain 4 and num3 is unchanged at 4.

At first I thought it was a trick question (because otherwise those variables would go unmodified), but there must be a provision about passing those last two variables as references. I think you're right on the money, Vernon.

The question should ask for a diagram of the queue at the different points.

Need some help with this Array. I am trying to get the sum of the even numbers and the sum of the odd numbers using a for each loop. I know the answers to what I am trying to achive are sum of even = 84 and the sum of ...

When I execute this progammatically, I get a table with row heights much larger than when I do this manually.

Note : Sel is the Word.Selection object and the Clipboard contains an Excel Table.

public void AddClipboard()
{
Sel.PasteExcelTable(false,false, false);
var t = Sel.Tables[Sel.Tables.Count];
t.AutoFitBehavior(Word.WdAutoFitBehavior.wdAutoFitContent);
}

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...