TELEVISION

Introduction to C++: Programming Concepts and Applications
Series: Introduction to C++: Programming Concepts and Applications4.8
(6)
About
Uncover the power and appeal of C++ for a wide range of uses. Then learn that by processing only 0's and 1's, a computer obeys the varied commands of a complex language such as C++. Write a traditional, "Hello, World!" program and discover the importance of adding comments to your code.
Related Subjects
Episodes
1. Compiling Your First C++ Program
31m
Uncover the power and appeal of C++ for a wide range of uses. Then learn that by processing only 0's and 1's, a computer obeys the varied commands of a complex language such as C++. Write a traditional, "Hello, World!" program and discover the importance of adding comments to your code.
3. Variables, Computations, and Input in C++
34m
Try out a program that calculates calories in different foods, demonstrating the essential elements of a program: input, variables, computations, and output. Learn to specify a variable's type and value, and get advice on shortcuts for keeping your instructions clean. Also discover the origin of the name C++, which signals that the language is designed to do whatever C can do-and then some.
4. Booleans and Conditionals in C++
30m
Probe the power of conditionals, which let you construct programs that can choose between true and false alternatives. Learn to use the keyword bool, which stands for Boolean variable-a value that can be either true (1) or false (0). Study the three basic Boolean operations-and, or, not-and see how they can be combined to make truly complex logical operations.
5. Program Design and Writing Test Cases in C++
29m
There's more to making a program than writing code. Begin by focusing on the importance of the header and special commands. Then consider how to use comments as "pseudocode" to design the structure that a particular program should follow. Finally, explore the crucial strategy of testing as you go, rather than when the program is complete and errors made near the start are harder to track down.
6. C++ Loops and Iteration
31m
Harness the power of loops, which are sections of code that repeat until a specified computation is complete. Focus on two main types of loops: while loops and for loops, with the latter being a compact way to make the loop occur a set number of times. Learn how to prevent infinite loops, and see how scope allows you to have separate variables inside and outside loops.
7. Importing C++ Functions and Libraries
30m
The secret for building an enormous program such as Windows, with millions of lines of code, is that it draws on ready-made code libraries. Investigate the options that libraries offer, from choosing random numbers to performing complex mathematical operations. Learn how to access a code library, and get tips for finding additional resources beyond the C++ standard libraries.
8. Arrays for Quick and Easy Data Storage
33m
In the first of two lectures on storing large amounts of data, learn the utility of arrays. An array is a collection of variables of the same type. Find out how to declare an array of variables and how to provide an index, which permits access to a specific value within the array. Probe the "out-of-bounds" error that can arise with arrays and see how it led to a notorious security breach.
9. Vectors for Safe and Flexible Data Storage
32m
Continue your study of data storage strategies by looking at vectors, which handle variables in much the same way as arrays but with distinct advantages, including the ability to change the size of a data structure dynamically. Learn how and when to use vectors, and discover that vectors offer a convenient fix for the out-of-bounds error introduced in the previous lecture.
10. C++ Strings for Manipulating Text
33m
Go beyond numbers to see how letters and punctuation are used in data strings, which are ordered sequences of characters. Examine string literals, which are specific fixed sequences of text; and string variables, which are the main way to process and control text data, such as names and addresses. Learn how to search, alphabetize, and concatenate string variables in C++.
Extended Details
- Closed CaptionsEnglish