Join Peggy Fisher for an in-depth discussion in this video Anatomy of a C++ program, part of Up and Running with C++.
…Each programming language has the same basic parts in their main function.…This includes comments, variables and variable names, equations,…console input and output, decisions, loops,…classes and objects, file input and output, and more.…I think the easiest way to learn about the…syntax of C++, is to walk through a program.…Here's a basic program that calculates travel cost.…
By asking the user to enter the information, the program can be reused…many times to calculate the cost of various trips, without rewriting the code.…If we start at the top of the…program, you'll notice there is a multi-line comment.…This is indicated with a slash asterisk, and an asterisk slash, ends the comment.…In this multi-line comment, we have the name of the program, travelcost.cpp,…the date the program was created, in our case, May 20th, 2014.…And the author's name, in this case Peggy Fisher.…
Next we have some lines beginning with a hash sign, or a pound sign.…These are considered directives, that are read and…interpreted by what is known as the pre-processor.…
- Downloading and exploring the C++ IDE
- Working with loops
- Using predefined functions
- Creating custom functions
- Creating and instantiating classes
- Working with external files
Skill Level Beginner
1. Getting Started
2. C++ Basics
3. Flow of Control
4. Classes and Objects
5. Data Structures
6. File Manipulation
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.