7 Segment Library problem

Exactly what values did you just store in this array? What values are in pin1, pin2, etc.? Since they appear to be global variables, they are all initialized to 0.

the values pin1, pin2 etc are the pin numbers where 7 segment pins are connected to the arduino.

Writing to the serial port pin is rarely a good idea.

pinListin[7] is an location of the pin8 which is the dot pin of the 7 segment.
how come it is a serial port pin, please specify.
i have made some changes in the cpp file and the header file according to your additions.