Go back to Richel Bilderbeek's homepage.
Go back to Richel Bilderbeek's C++ page.
std::div is an STL function for integer division, which creates a std::div_t containing the quotient and remainder of the division.
#include <cassert> |
The related std::ldiv function works on long ints.
Go back to Richel Bilderbeek's C++ page.
Go back to Richel Bilderbeek's homepage.