Problem understanding 7-segment display

Your post is incoherent but

Cathode 7 segment display

suggests something, and Arduino Playground - HomePage may, along with the LED control library, help you sort things out.