返回局部对象的引用:
###:局部对象
###:返回引用
string& f() { string s = "abc"; return s; } cout << f() << endl;//输出未知,vs上测试为空串