Genus of curves in projective space

Hello everyone,

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

is a topologically equivalent to a torus (genus 1) by making cuts between the zeros (0, , and ) 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 . I know the answer:

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.