So im a bit lost in my c++ programming. Not the code init self, but a error I keep getting. I dont know why I keep getting -> error?

Im using Visual Studio ultimate 2010, and I havnt had any problem with it, til now:
Does anyone know why I keep gettin this error or possibly can be written some other way?

Error 1 error C2059: syntax error : '->'

Greatly appreciated!