// ( t7.C ) // インライン関数 // #include inline double calc1( const double r ) { return r*r ; } inline double calc2( const double r=3.0 ) { return r*r ; } // デフォルト引き数に注目! inline void disp1() { cout << "haruo\n" ; } inline void disp2( const int n ) { if ( n > 3 ) cout << "haruo\n" ; else cout << "katou\n" ; } inline void disp3( const int n ) { // 出口がないとワ−ニングが出る if ( n > 3 ) cout << "haruo\n" ; else for ( int i=0;i 3 ) cout << "haruo\n" ; else for ( int i=0;i