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 (2)

1 answer

Last reply by: Alvin Sylvain
Fri Jun 13, 2014 12:30 PM

Post by Kitt Parker on June 12, 2014

Had a clarification question on one of the functions.  Great videos by the way, wish more people took this approach.  A lot of distance classes involve the teacher throwing a book and some written assignments your way and politically saying "figure it out, lol."  

1.) the getline method reads up to the delimiter and stops correct?

I.E. This | is a | Test

would only catch "This "    ?  Pipe is the delimiter.  To catch everything in an array, we would have to loop it correct?

With the following function.

int get_int(istream &s, char delimiter) {
string buffer;
getline (s, buffer, delimiter);
stringstream ss(buffer);
int rtn;
ss >> rtn;
return rtn;

Review Using Real Code

Review Using Real Code

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:19
  • Checkbook Program 1:15
    • Source Code
    • 3 Structures
  • Checkbook Program 6:36
    • Create Functions
    • Source Code: Constant Set up / Version
    • Delimiter
    • Load Transactions
    • Dump Transactions
    • Utility Functions
  • Structures 16:14
    • Bank Structure
    • Transactions
  • Global Constants 17:00
    • Source Code: Global Variables
  • Function Prototypes 18:52
    • Source Code
    • Find the Bug in the Code
  • Function Prototypes 24:32
  • 'Main', the Director 25:16
    • Source Code
    • Read Initial Data
    • Source Code
  • Function to Create 'Init' File 30:34
  • Transactions File Functions 35:12
  • User Action Functions 36:58
    • First User Action
    • Source Code
  • Utility Functions 44:34
    • 'Stringstream'
  • Write Your Own Cheque 47:26