thanks
but i can`t find the problem with my code
there is no error when debugging, but it prompt error when runningCode:void CDelta::Decompose( int m, int n) { int index = 0; if( m==0 ) CreateU( index++ ); else for( int i = m; i >= 1; i-- ) { if( n == 0 || i <= m_vectTemp[n-1] ) { if( m_vectTemp.size() > n ) m_vectTemp[n] = i; else m_vectTemp.push_back( i ); Decompose( m-i, n+1 ); } } /* int i; if(m==0) show(n); else for(i=m;i>=1;i--) if(n==0||i<=a[n-1]) { a[n]=i; decompose(m-i,n+1); } */ }




Reply With Quote