[cs13001] Format of Midterm?
Mikhail Nesterenko
mikhail at cs.kent.edu
Wed Oct 17 09:59:27 EDT 2012
> Can you give a example of conditional assignment?
Here is the example we studied in class:
http://vega.cs.kent.edu/~mikhail/classes/csi.f12/Examples/Ifswitch/5largest3.cpp
Thanks,
--
Mikhail
> On Oct 17, 2012 9:28 AM, "Mikhail Nesterenko" <mikhail at cs.kent.edu> wrote:
>
> > >
> > > While studying, I came across Conditional Assignments. While there
> > > is one slide for this in your PowerPoint,it does not seem to be in
> > > the book. Do we need to know this? If so, can you explain what the
> > > significance of a Conditional Assignment is?
> >
> > Conditional assignment operates as follows:
> >
> > condition ? first_expression : second_expression;
> >
> > The "condition" is a Boolean expression. If the "condition" is
> > "true", then the first_expression is evaluated. If "condition" is
> > "false", then second_expression is evaluated.
More information about the cs13001
mailing list