A function is a group of statements that performs a specific task, and may or may not return a value after execution. Explore the basics of creating custom functions, using strings, handling exceptions, and including namespaces in C++.
Learning Objectives
Functions
- start the course
- define default arguments for a function in C++
- write an inline function in C++
- write overloaded functions in C++
- pass pointers as arguments to functions in C++
References
- use references in C++
- use references as function arguments in C++
- use references as function return values in C++
Exception Handling
- use asserts for troubleshooting in C++ programs
- implement exception handling in C++ programs
- use nothrow new to suppress allocation exceptions in C++
Strings
- use the C++ string class
- use the C++ wide string class
- work with C-style string in C++
- work with null terminated strings in C++
Namespaces
- declare a namespace in C++
- use a namespace in C++
- create a namespace alias in C++
- create a C++ application using the std namespace
Practice: Functions, Exceptions, & Strings
- create an application that uses C++ functions, exceptions, and strings