更新时间:2023-02-25 21:19:57
前导零不是由二进制数字表示c> int , double
等)所以你可能需要使用 std :: string
。读取字符串中的输入,然后调用 std :: reverse()
将该字符串作为输入。
Leading zeroes are not represented by binary numbers (int
, double
, etc.) So you'll probably have to use std::string
. Read the input into the string, then call std::reverse()
passing the string as input.