Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Handling Strings

  • We’re going to take a closer look at handling character strings.
  • There are two kinds of character strings to deal with, the C++ String Object and the Classic C character array.
  • C++ String is an object, as in object oriented programming. It tends to be easier to use in everyday programming.
  • Classic C String is a null-terminated array of characters, much like any other array.
  • C++ String object overloads operators to allow it to be used in expressions similar to other data types.
  • It also includes member functions used for other processes, such as searching a string for a sub-string, getting string length, etc.
  • We cover some cautions when using Classic C Strings, including cautions using string functions from the standard library.
  • Classic C Strings are till required in certain functions.
  • Here are links to more information about string handling:
    C++ string object library: http://www.cplusplus.com/reference/string/string/
    C string standard library: http://www.cplusplus.com/reference/clibrary/cstring/

Handling Strings

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.

Computer Science: Introduction to C++