Chapter 3: Variables and Operators


Download CD Content

Overview

In this chapter, you will learn how to:

  • Declare (create) variables

  • Use the built-in C++ data types

  • Create user-defined types

  • Add member variables to a class

  • Use the Microsoft .NET Framework String class

  • Assign values to a variable

  • Create expressions using the C++ operators

  • Cast (change) the type of a variable

In the previous chapter, we looked at the advantages of object-oriented programming and developed a simple program to illustrate the creation and use of classes.

In this chapter, we’ll take a closer look at how to create and use variables, the fundamental data types of C++, how to access and use classes from the .NET Framework, and how to create expressions using the C++ operators.




Microsoft Visual C++  .NET(c) Step by Step
Microsoft Visual C++ .NET(c) Step by Step
ISBN: 735615675
EAN: N/A
Year: 2003
Pages: 208

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