O'Reilly logo

C++ All-in-One For Dummies, 3rd Edition by John Paul Mueller, Jeff Cogswell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 3

Storing Data in C++

In This Chapter

arrow Using storage bins called variables

arrow Working with integer variables

arrow Using character variables

arrow Manipulating strings

arrow Using Boolean variables

arrow Using conditional operators

arrow Reading from the console

We all love to store things away. The closet is a perfect example of a place to store things. We have boxes in our closets that we have not opened in years. Perhaps we inadvertently created a time capsule. Or just a fire hazard. When you program a computer, you can also store things away. Most people know that a computer has two kinds of memory: memory inside the chip and memory in the hard drive. But most people use the term memory in reference to the memory chip; the other is referred to as simply the hard drive. When you type a business letter in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required