C++ Convert int to string

std::string year = std::to_string(now->tm_year + 1900);