MMA7455 code problems

Didnt mean to put the .cpp guess I'm used to putting it for my c++ programs. This is within the sketch.