Error: C2228: left of '' must have class/struct/union

后端 未结 4 1089
南旧
南旧 2020-12-08 14:53

I\'m a long time Java user learning C++ with Qt and I\'m having a lot of trouble understanding how methods work. Right now, I\'m trying to figure out databases, and tried to

4条回答
  •  离开以前
    2020-12-08 15:17

    You need to say this:

     DatabaseControl myDBControl;
     myDBControl.addEmployee();
    

提交回复
热议问题