We have to implement the getToken on our own but we cannot change the header that contains getToken. I can't figure out what to pass as a first parameter?
What is *br supposed to take?
number one error is that you are redefining br. Since br has pointer-to-ifstream type, you should assign the address of inline to it, and not inline itself. You should pass inline's address to the function an not inline itself. Nevertheless, from your code, the br pointer is futile.