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 ...

Get C++ All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.