Join Peggy Fisher for an in-depth discussion in this video Using predefined functions, part of Learning C++.
…There are several useful standard code libraries…that have already been written for us.…In this video, we will review a few of these libraries.…Let's start with the string library.…It has the functions, getline, length, sub string,…and a sub string that takes two parameters.…The next library's the math library.…It includes a square root function, a power…function which helps us to raise a variable…to a power, the sin function, cosine, and…the absolute value of a floating point number.…
We will use the iomanip library quite often.…It helps us to format the output.…We can use the fixed function to add trailing zeros.…We can use left and right to line our data up.…This is especially handy when you're trying to print data out in columns.…We can use set fill and provide a fill character.…Set precision indicates how many places after the decimal point to include.…And set width tells the computer how wide we…want to allocate for each variable when we print it.…The cstdlib includes rand, which allows us to generate a random number.…
- 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
Q: How do I upgrade the C++ compiler on Mac OS X and Linux?
A: Refer to C/C++ Essential Training for a detailed look at installing or upgrading the C++ compiler on various platforms.
Q: The link to download the Eclipse IDE in the "Download a C++ IDE" movie doesn't work. Where can I find the IDE?
A: Short URLs are case sensitive and need to be typed in exactly as they appear. Type in or simply click http://goo.gl/CzckWp to visit the Eclipse IDE for C/C++ Developers page.
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.