C ++文字列を数値に変換し、

 

int型 string2int(文字列x)は、

INT string2int(X){
     int型文字列 RES =のX。
    stringstream SS; 
    SS << RES。
    SS >> ;
    返します
}

 

おすすめ

転載: www.cnblogs.com/sea-stream/p/11105403.html