CPP 給函數返回值賦值!

在個人印象中給函數的返回值賦值算是編程裏面比較粗暴的行爲!ios 看下面的事例:編程 #include <iostream> #include <string> using namespace std; char &get_val(string &str, string::size_type index) { return str[index]; } int main()
相關文章
相關標籤/搜索