You’ve learned quite a bit! You now know a bit about how scope works for functions and files, as well as how to make functions more flexible for different use cases:
g++ main.cpp fns.cpp
included in the file with
inlinekeyword, which may or may not improve execution speed.
We’ve provided you with three files to play around with functions:
You can also click on the folder icon and create more files or rename these ones.
Have some fun with functions!