效率方面:C風格的sprintf因為沒有動態內存分配,效率最高。std::to_string其次,最差的是std::stringstream。 從C++17開始,提供效率不差於sprintf, ...
確定! 回上一頁