Hour 12. Performing Arithmetic, String Manipulation, and Date/Time AdjustmentsWhat You'll Learn in This Hour:
Just as arithmetic is a necessary part of everyday life, it's also vital to developing Windows programs. You probably won't write an application that doesn't add, subtract, multiply, or divide some numbers. In this hour, you learn how to perform arithmetic in code. You also learn about order of operator precedence, which determines how Visual C# 2005 evaluates complicated expressions (equations). After you understand operator precedence, you'll learn how to compare equalitiessomething you'll do all the time. Boolean logic is the logic Visual C# uses to evaluate expressions in decision-making constructs. If you've never programmed before, Boolean logic might be a new concept to you. In this hour, I explain what you need to know about Boolean logic to create efficient code that performs as expected. Finally, I show you how to manipulate strings and work with dates and times. |