I have to say that I think it is a bit unclear what you want, and I would love to see some code.
This is the result of me guessing what you want, without testing if it even works.
Anyways, here is:
/*
|| A simple I/O example using console
||
|| Contributed:
|| Alexander Brevig
*/ #define NUMBER_OF_PINS 8
char output[NUMBER_OF_PINS+1] = "12345678";
char outputMsgs[NUMBER_OF_PINS+1] = "abcdefgh";
byte switchPin[] = {3,4,5,6,7,8,9,10};
byte index = NUMBER_OF_PINS-1;
void setup() {
for (byte i=0; i<NUMBER_OF_PINS; i++){
pinMode(switchPin*,INPUT);*