Connecting...

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++
For more information, please see full course syllabus of Introduction to C++
Introduction to C++ Review Using Real Code
Lecture Description
In this lesson, our instructor Alvin Sylvain gives an introduction to review using real code. He starts by discussing the checkbook program and the 3 structures. He then moves on to global constants, function prototypes, some source code, function to creat 'init' file, and transactions file functions. He also reviews a bit of user action functions and utility functions.
Bookmark & Share
Embed
Share this knowledge with your friends!
Copy & Paste this embed code into your website’s HTML
Please ensure that your website editor is in text mode when you paste the code.(In Wordpress, the mode button is on the top right corner.)
×
- - Allow users to view the embedded video in full-size.
Next Lecture
Previous Lecture
1 answer
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;
}