Hour 12. Performing Arithmetic, String Manipulation, and DateTime Adjustments


Hour 12. Performing Arithmetic, String Manipulation, and Date/Time Adjustments

What You'll Learn in This Hour:

  • Performing arithmetic

  • Understanding the order of operator precedence

  • Comparing equalities

  • Understanding Boolean logic

  • Manipulating strings

  • Working with dates and times

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.




Sams Teach Yourself Microsoft Visual C# 2005 in 24 Hours, Complete Starter Kit
Sams Teach Yourself Visual C# 2005 in 24 Hours, Complete Starter Kit
ISBN: 0672327406
EAN: 2147483647
Year: N/A
Pages: 248
Authors: James Foxall

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net