CPP 给函数返回值赋值!

在个人印象中给函数的返回值赋值算是编程里面比较粗暴的行为!ios 看下面的事例:编程 #include <iostream> #include <string> using namespace std; char &get_val(string &str, string::size_type index) { return str[index]; } int main()
相关文章
相关标签/搜索