Why does ((*i)->getFirstName()) work, as opposed to *i->getFirstName() or Employee[*i]getFirstName()?

后端 未结 0 1532
不知归路
不知归路 2020-12-19 06:16

Why does this line of code work in this scenario?

    cout << ((*i)->getFirstName());

The context

    class Employee{         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题