阅读背景:

c ++为什么在将字符串文字传递给函数时会分配内存?

来源:互联网 

I have his code:

我有他的代码:

int setAttrib(const string& name, int components){    
    // here I don't even touch 'name'
    if(components == 2) return 3;
    else return 1;
}
int setAttrib(cons



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: