The Structure Of Dark Matter Haloes In Cosmological Simulations