“>Nesting ParenthesesWith complex expressions, you might need to nest parentheses (to put asubexpression inside another subexpression). For example:4*(3+(6/2))This complicated expression should be read from the inside out. First, divide6 by 2. Then add 3 to that result. Then multiply the updated result by 4.Because C++ doesn't require an expression to be written on a singleline, you can make this more understandable by using the parentheses as if theywere braces:4*( 3+ (6/2))Th
continue >>
Author:
Time:
Tuesday, February 5th, 2008 at 5:18 am
Category:
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation: