Hack Forums
[C] FizzBuzz - a VERY simple challange for newbie C++'ers...extented - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [C] FizzBuzz - a VERY simple challange for newbie C++'ers...extented (/showthread.php?tid=6077369)



FizzBuzz - a VERY simple challange for newbie C++'ers...extented - saltycracker - May 12, 2020

Take the previous FizzBuzz challenge but this time use C++'s type system to formulate a type correct answer. You will now have Fizz and Buzz and FizzBuzz types.

Hint for the rookies... You should be able to store all the Fizz and Buzz and FizzBuzz and nonFizzBuzz(ones that don't qualify as a Fizz or Buzz or FizzBuzz) types in one C++ data-structure like a vector.