The residue theorem is the most important theorem of complex functions.In this paper, it applies the residue theorem to several real function integral into copmplex function integral to achieve the effect of making hard things simple with some examples to illustrate.