阅读背景:

在c++中使用sprintf()格式字符串的警告

来源:互联网 

Compiling this lines

编译这个行

    long int sz;
    char tmpret[128];

    //take substring of c, translate in c string, convert to int, 
    //and multiply with 1024
    sz=atoi(c.substr(0,pos).c_str())*1024;

    snprintf(tmpret,128,"%l",sz); 
    long int sz;



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

分享到: