Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of Introduction to C++
  • Discussion

  • Study Guides

  • Download Lecture Slides

  • Table of Contents

  • Related Services

Lecture Comments (4)

0 answers

Post by Terri Whitmer on October 31, 2014

wowe bill cosby does it again! classic comedy.

2 answers

Last reply by: Mahmoud Osman
Fri Mar 7, 2014 7:48 AM

Post by kristof anderson on June 9, 2012

Love your energy man it makes it alot easier to watch in contrast to only mind numbing talking!!

Data Storage

  • C++ programs use identifiers to identify various objects in the program
  • An “identifier” is the “name” of a given object
  • There are rules enforced by the compiler when creating an identifier
  • There can also be “rules” to follow to help Humans read the code more easily
  • C++ has a brief list of simple data types to distinguish between different kinds and sizes of simple data
  • C++ programs also use literals to identify numeric, character, and string constants
  • Certain character literals must be quoted to use
  • Variables must be declared with a type before being used
  • Variables can be initialized when declared
  • This link discusses C++ data types and variables:
  • This link discusses constants and literals in a C++ program, including preprocessor defines and declared constants:

Data Storage

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

  • Intro 0:00
  • Overview 0:12
  • Variables, Identifiers, Names 1:34
    • Identifiers Defined
    • Example of Valid Identifiers
  • Styles: Multi-Word Identifiers 3:59
    • Compiler Doesn't Care
  • Styles: Identify Identifiers 5:38
  • Simple Data Types 8:08
  • Variable Type Declaration 10:35
    • Commentary
    • More Than One Variable Declared
  • Compiler Allocates Storage 14:23
    • Example
  • Variable Initialization 16:47
    • C Style
    • Example
    • C++ 'Class' Style
  • Numeric Literals 19:41
    • 'Long' Types
    • Beware: Do Not Use
  • Character Literals 24:27
    • Examples
  • Quoted Special Characters 27:43
  • String Literals 29:55
    • String Object
  • Homework 33:20