Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
auto example 1: basics is an auto example.
A division will only succeed if the denominator is unequal to zero. In your code, you will have to take care that a division by zero never occurs. Using assert, as shown in the code below, will take you to the problem directly.
Operating system(s) or programming environment(s)
Libraries used:
include(../../ConsoleApplication.pri) #Or use the code below |
#include <iostream> |
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.
This page has been created by the tool CodeToHtml