Help with a C++ project. Trouble with reading input file

Hi, im trying to make a C++ project for my class which reads the input from a text file and outputs the mean, median, and mode. but im running into an error i get when i run it. i get this error when i try to build it

error C2040: 'name' : 'std::string' differs in levels of indirection from 'char [16]'
error C2088: '>>' : illegal for class

here is my current code. its too long to post here so i had to put it on pastebin

http://pastebin.com/Cvjj1uSN
On line 35 and 37 you define the variable name. remove line 35
Topic archived. No new replies allowed.