10/01/05 20:17:46
正規表現を使うほどのコードじゃないと思う。
std::string HakureiReimu(std::string str)
{
std::string result;
if(str.find('.') == std::string::npos){
result = str + ".00000";
}
else{
result = str + "00000";
}
if(result[0] == '-'){
return result.substr(0,6);
}
return result.substr(0,5);
}