// inline.cpp // Test program showing simple inline function // 1/28/03, Ray S. Babcock // #include using namespace std; double square(double x) { double internal; int j; for(int j = 0; j<100000; j++) (internal = x*x); return (internal);}; int main(void) { double results; for(int i=0; i<10000; i++) results = square((double)i); cout << "all done!" << endl; }