need help to blink simple pattern with shift register

I get the error in ledState line when i am using the following declaration

Then post the error message, and post the code that gave it you.

Never mind I spotted it, I had two = it should be just:-

int ledState[] = {0,1,1,0,0,1,1,0};

What is it about "The code I gave you should be placed complete and as a whole after the first { in the loop function and before any code you originally had in the loop function. " that you can't understand?

void loop() {
// PLACE THE CODE I POSTED HERE
 digitalWrite(latchPin, LOW);
      for(int i=0;i<8;i++)

This is serious, what were you not able to understand about that, maybe if I knew this I could explain things so that you could understand.