••• Unprocessable paragraph: \start
Home Segments Index Top Previous Next

328: Mainline

\slidefont

••• Unprocessable paragraph: Recall that the value of an input expression, such as \code{cin >> height}, is normally the same as the value of \code{cin} itself. Accordingly, an input expression is a suitable left argument for another input expression. \par C:\Phw\Onto\CPP\iterateb.tex •••

Thus, the following while statement will continue looping, because the value of each input expression is the same as the value of cin, and therefore, the value never can be 0 as long as you keep typing numbers:

while (cin >> height >> width >> depth)  
  ... 

C:\Phw\Onto\CPP\iterateb.tex •••