If you have LinkList::insert( const char * lib );
You have to use it with std::string
like
while( getline( fin, lib, '\n' ) )
{
game.insert( lib.c_str() ); // <- passes the data as const char *
cout << lib;
}
Whether it really works as intended depends on what the insert()
function actually does.