Learning to program is like learning a musical instrument. It takes dedication, lots of practice, and a great teacher. This primer-created by award-winning author Charles Petzold-focuses on the fundamentals of composing code with C#, an intuitive object-oriented programming language ideal for creating solutions for Microsoft Windows and the Web. Whether you're new to programming or new to C#, you'll quickly build the skills you need to orchestrate your own applications in the key of C#. Discover how to: .Start simple with variables-integers and text strings .Learn the basics of user input and output .Get deeper into data types with decimals and floating point .Explore how Booleans help a program make decisions .Branch, loop, and enumerate to perform selective and repetitive tasks .Prevent your programs from crashing with structured exception handling .Assemble classes from fields, methods, and properties .Extend classes with inheritance, operators, and virtual methods .Store information in data fields .Teach your programs to play music in the key of C#
Charles Petzold has been writing about programming for Windows-based operating systems for 24 years. A Microsoft MVP for Client Application Development and a Windows Pioneer Award winner, Petzold is author of the classic Programming Windows, currently in its sixth edition and one of the best-known programming books of all time; the widely acclaimed Code: The Hidden Language of Computer Hardware and Software; and more than a dozen other books.