// Justin C. Miller
// University of Wisconsin Oshkosh
// Made for: http://www.geocities.com/neonprimetime.geo/index.html
// Date: 2001
// Borland Builder 4.0
// inline
#include
// both of these functions accomplish the same thing
// but the inline function can save execution time
// because it puts the code directly into the main
// program, thus eliminating function calls
// inline is only used with very small functions
// that are commonly used in the program
// inline is only a request to the compiler, so
// it does not always accept your request
// although inline can increase your execution time
// it is actually making copies of your function
// so if you call the hi() function many times
// you will be getting many copies of the function
// in the main() and thus using up memory
inline void hi()
{cout << "hello world" << endl ;}
void hello()
{cout << "hello world" << endl ;}
int main()
{
hi() ; // inline requests for the compiler to insert
// the code in the hi() function directly
// into the main program
// advantage: execution time shortens
// disadvantage: makes several copies of
// your function thus wasting memory
/* so it would actually look like this
cout << "hello world" << endl ;
*/
hello() ; // where as hello() stops, stores
// everything being used now onto the
// stack, then jumps to the hello function
// executes that code, then jumps back to
// the main program
// advantage: only one copy of the code is made
// disadvantage: the time is takes to make
// a function call
return 0 ;
}
               (
geocities.com/neonprimetime.geo/cpp)                   (
geocities.com/neonprimetime.geo)