Skip to Main Content
Microsoft Visual C++/CLI Step by Step
book

Microsoft Visual C++/CLI Step by Step

by Julian Templeman
August 2013
Beginner content levelBeginner
540 pages
12h 51m
English
Microsoft Press
Content preview from Microsoft Visual C++/CLI Step by Step

Chapter 3. Variables and Operators

After completing this chapter, you will be able to:

  • Declare (create) variables.

  • Use the built-in C++ data types.

  • Use the Microsoft .NET Framework String class.

  • Assign values to a variable.

  • Create expressions by using the C++ operators.

  • Cast (change) the type of a variable.

In Chapter 2, you looked at the advantages of object-oriented programming and developed a simple application to illustrate the creation and use of classes.

In this chapter, you’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 by using C++ operators.

What is a variable?

Variables are locations in memory where data can be temporarily ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft Visual C++ Windows Applications by Example

Microsoft Visual C++ Windows Applications by Example

Stefan Bjornander
Visual Basic 2015 Unleashed

Visual Basic 2015 Unleashed

Alessandro Del Sole
Build Windows 8 Apps with Microsoft Visual C++ Step by Step

Build Windows 8 Apps with Microsoft Visual C++ Step by Step

Paolo Pialorsi Luca Regnicoli and Roberto Brunetti

Publisher Resources

ISBN: 9780735675162Purchase book