From the course: C++ Best Practices for Developers
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Writing an integer sum method - C++ Tutorial
From the course: C++ Best Practices for Developers
Challenge: Writing an integer sum method
“
- [Narrator] I hope you're ready for a little coding challenge. Write a variadic function named summer. It accepts one or more integers as parameters and sums them up. Only worry about making your code work for integers. Give yourself five or 10 minutes to solve this challenge. Good luck.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Auto type deduction and initialization1m 27s
-
(Locked)
Range-based for loops1m 45s
-
(Locked)
Strongly typed enums1m 58s
-
(Locked)
Using lambdas2m 39s
-
(Locked)
The magic of variadic template functions2m 12s
-
(Locked)
Challenge: Writing an integer sum method21s
-
(Locked)
Solution: Writing an integer sum method2m
-
(Locked)
-
-
-