c++ and it's "." vs "->" error fix