Let $X$ be the vector space of all the continuous complex-valued functions on $[0,1]$. Then $X$ has an inner product $$(f,g) = \int_0^1 f(t)\overline{g(t)} dt$$ to make it an inner product space. But this is not a Hilbert space.
Why isn't is complete? Which Cauchy sequence in it is not convergent?
Thanks.
Let $$f_n(t) := \left(1-n \cdot dist\left(\{t\}, \left[\frac{1}{4},\frac{3}{4} \right] \right) \right) \vee 0$$
Then $(f_n)_n$ is a Cauchy-sequence,
$$f_n \to 1_{\left[\frac{1}{4},\frac{3}{4} \right]} \notin C[0,1]$$