此代码片段在 - >行上给出段错误,请注意n = 3
real_t _b[n+1];
real_t * b = _b+1;
std::fill( b, b + n , (real_t)0.0 );
for ( unsigned c = 0; c < n; c ++ )
{
-> b[c-1] = 0; b[c] = 1;
Lsolve( xtmp, lu, b, n );
我被告知这是因为我在64位(Linux amd64,gcc 4.6,调试标志-O0)
谁能告诉我更多?