I'm currently making a program that would run a video rental store that first reads a file and populates video and customer objects which all runs smoothly however i get an ...4\driver.cpp(101): error C2228: left of '.getID' must have class/struct/union whenever i try to call a function of either video or customer. As an example on Driver.cpp line 95 is where the error is shown to be when i try to call the getID() function from the customer class. Any help would be greatly appreciated.
P.S. The problem is fixed when i use the "->" operator instead of the dot operator but i have never had to use the -> in other programs instead of the dot even when using object pointer arrays and i am wondering if this is a problem in my design or some extraneos error.