Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
Does anyone know how switching Pokemon out during battle affects EVs gained? Do both pokemon gain the EVs or does the Pokemon who defeats the opponent gain the EVs?