// FILE: cons5b.cpp // // DESCRIPTION: // This subroutine sets variables passed to it to the values of pi and e. // Useful to avoid the danger of typos and other mistakes. // // HISTORY: // 09/25/97: Leon van Dommelen: version 1.0.0 // 03/03/99: Leon van Dommelen: updated the comments void set_cons(float &pi, float &e) { pi = 3.141593; // The value of pi according to the tables e = 2.718282; // The value of e according to the tables }