Proof (compactly supported continuous functions are dense in Lp)

Let $f\in L^p(\R^d)$. Define $$ \begin{align*} f_R(x) = \begin{cases} f(x), &|x|<R \text{ and } |f(x)| < R, \\ 0, &\text{otherwise}. \end{cases} \end{align*} $$ Then $f_R$ is increasing as $R\to 0$ and $f_R \to f$. By [[FILE NOT FOUND: dominated convergence]], as $|f_R(x) - f(x)|^p \leq 2^p |f(x)|^p$ which is $L^1$, $$ \begin{align*} \int_{\R^d} |f_R(x) - f(x)|^p \d x \to 0. \end{align*} $$

Fix $ε>0$. Take $R$ large enough such that $\int_{\R^d} |f_R(x)-f(x)|^p \d x < ε$.

For any $ε_1>0$, by Lusin applied to $f_R|_{B_{R}[0]}$, there exists some continuous function $g: B_{2R}[0]\to \C$ such that

Extend $g$ to $\R^d\to \C$ by setting $g(x) = 0$ on $g(x)=0$ on $|x| \geq R$. (The condition $g(x) = 0$ on $|x| = R$ ensures continuity.) Then $$ \begin{align*} \int_{\R^d} |f_R(x) - g(x)|^p \d x ={} &\int_{|x|<R} |f_R(x) - g(x)|^p \d x \\ \leq{} & \int_{|x|<R} (2R)^p \,\mathbb{1}_{\set{f_R(x)\neq g(x)}} \d x \\ ={}& (2R)^p\cdot |B_R(0)|\cdot ε_1 < ε \end{align*} $$ for sufficiently small $ε_1$. Then by Minkowski's inequality, $\int_{\R^d} |f(x) - g(x)|^p \d x \leq \int_{\R^d} |f_R(x) - f(x)|^p \d x + \int_{\R^d} |f_R(x) - g(x)|^p \d x < 2ε$.