无法理解这个函数在C ++中的返回

时间:2014-10-13 07:37:11

标签: c++

任何人都可以帮我理解这个功能吗?

CheckList(Listfile*& Listitems,bool showSortList)

Listfile是一个课程,但我无法理解什么是Listfile*&,什么会返回Listitems

2 个答案:

答案 0 :(得分:3)

这是reference to a pointer

CheckList(Listfile*& Listitems,bool showSortList)
          ^^^^^^^^^ pointer to Listfile
                   ^ reference

你应该更好地学习C ++,这可以在any decent C++ book中找到。

答案 1 :(得分:1)

它正在接受reference of pointer to Listfile。有关此主题的详细信息,请查看此处: http://www.codeproject.com/Articles/4894/Pointer-to-Pointer-and-Reference-to-Pointer

Passing references to pointers in C++