Hello everyone,
I am working on understanding the genus of curves in projective spaces, and I have convinced myself that an elliptic curve

y^2=x(x-\lambda _1)(x-\lambda _2)

is a topologically equivalent to a torus (genus 1) by making cuts between the zeros (0, \lambda _1, \lambda _2, and \infty) and gluing up regions so that the function is single-valued. However, now I need to know about a curve C of degree d in the complex projective space \mathbb{C}P. I know the answer:

g=\binom {d-1}{2}=\frac{1}{2}(d-1)(d-2).

So it seems obvious what is happening is for d+1 zeros (degree d + infinity) there are d-1 possible connections between two adjacent points, and we want to identify them in pairs to make our manifold. But I'm not clear on how we know that this coefficient gives us the genus (ie number of holes). Could someone elaborate on that, or correct me if I am wrong about something?

Thanks very much.