There are two operators . and -> in c++,I know when you want to get a variable or function of an object of a class,you should use .
But when I want to get a functions and variables from a pointer ,I see they both can use and seem same.So what's the difference between them?