1、将输出参数在函数接口中传入,防止局部变量超出局部使用范围
2、返回值最好是函数执行状态结果
eg:
Status StringToUpper(const string& input_string, string& output_string);
功能:实现string对象小写转大写
参数:
input_string:输入字符串
output_string:输出字符串
Status:函数执行状态