The program prints numbers 1 - 100, but:
if the number is a multiple of 3, it will print "Fizz"
if the number is a multiple of 5, it will print "Buzz"
if the number is a multiple of both 5 and 3, i
The program prints numbers 1 - 100, but:
if the number is a multiple of 3, it will print "Fizz"
if the number is a multiple of 5, it will print "Buzz"
if the number is a multiple of both 5 and 3, i
This project shows how a private member in a C++ class can be accessed if we know data type of that member a priori.
It uses simple memory pointer to access the private member from void main. Run It Now!