Q
qazmlp
int main()
{
std::string strVal = "2" ;
strVal = "000" + strVal ;
}
I am wondering how the above one compiles well. I expected that, it should be
int main()
{
std::string strVal = "2" ;
strVal = std::string("000") + strVal ;
}
{
std::string strVal = "2" ;
strVal = "000" + strVal ;
}
I am wondering how the above one compiles well. I expected that, it should be
int main()
{
std::string strVal = "2" ;
strVal = std::string("000") + strVal ;
}