A trainer is generally a program that modifies game information in memory, to give you extra health/experience points/gold, prevent you from dying, etc. Usually you start the trainer, start the game, switch back to the trainer and enable whatever functions you can/want, then switch back to the game.