F:\cricket game>g++ -c player.cpp
In file included from player.cpp:2:
player.h:7: 'string' is used as a type, but is not defined as a type.
player.h:8: 'string' is used as a type, but is not defined as a type.
player.h:9: 'string' is used as a type, but is not defined as a type.
player.h:15: `string' was not declared in this scope
player.h:15: invalid data member initialization
player.h:15: (use `=' to initialize static data members)
player.h:15: variable or field `setfname' declared void
player.h:16: `string' was not declared in this scope
player.h:16: invalid data member initialization
player.h:16: variable or field `setlname' declared void
player.h:17: `string' was not declared in this scope
player.h:17: invalid data member initialization
player.h:17: variable or field `setteam' declared void
player.h:21: parse error before `)' token
player.h:22: parse error before `)' token
player.h:23: parse error before `)' token
player.cpp:7: `string' was not declared in this scope
player.cpp:7: parse error before `)' token
player.cpp:8: no `void Player_Type::setfname(...)' member function declared in
class `Player_Type'
player.cpp: In member function `void Player_Type::setfname(...)':
player.cpp:10: `fname' undeclared (first use this function)
player.cpp:10: (Each undeclared identifier is reported only once for each
function it appears in.)
player.cpp:10: `name1' undeclared (first use this function)
player.cpp: At global scope:
player.cpp:15: `string' was not declared in this scope
player.cpp:15: parse error before `)' token
player.cpp:16: no `void Player_Type::setlname(...)' member function declared in