-6

Can anyone help me to understand this function?

CheckList(Listfile*& Listitems,bool showSortList)

Listfile is a class but I can't understand what is Listfile*&, what would be return to Listitems?

Yu Hao
  • 119,891
  • 44
  • 235
  • 294
NTinside
  • 3
  • 1

2 Answers2

3

It's a reference to a pointer:

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

you should study C++ better, this can be found in any decent C++ book.

Community
  • 1
  • 1
Marco A.
  • 43,032
  • 26
  • 132
  • 246
  • 1
    +1. Additionally, phrases like "any decent C++ book" are best accompanied with a link to the [list of good C++ books here on SO](http://stackoverflow.com/q/388242/1782465). – Angew is no longer proud of SO Oct 13 '14 at 08:01
  • im studing/using C++ simultaneously, at least step by step try to understand this language now. Thanks you all for your help. – NTinside Oct 13 '14 at 17:32
1

Its taking reference of pointer to Listfile. Have a look here for detail of this topic: http://www.codeproject.com/Articles/4894/Pointer-to-Pointer-and-Reference-to-Pointer

Passing references to pointers in C++

Community
  • 1
  • 1
iampranabroy
  • 1,716
  • 1
  • 15
  • 11