neopixel problem~can't solved for 2 weeks

Hi guys,

I’m having trouble with my neopixel code.
I use 120 neopixels
I’m trying to make start position from 61 not 0. also end point is 70 not 120.

I tried 100 times to solve this problem…but I can’t
can anyone help me?
here is my core code below.

void loop() {

n.setTime(c.m, c.s);

delay(1000);
}

void NeoPixel::setM(int m)
{
strip.setPixelColor(m, strip.Color(0, 255, 0));
for (uint16_t i = 0; i < strip.numPixels(); i++) {
if (i != m)
strip.setPixelColor(i, strip.Color(0, 0, 0));
strip.show();
}
}

void NeoPixel::setS(int s)
{
strip.setPixelColor(s, strip.Color(0, 0, 255));
for (uint16_t i = 61; i

if (i != s)
strip.setPixelColor(i, strip.Color(0, 0, 0));
strip.show();
}
}

void NeoPixel::setTime(int s, int m)
{
//strip.setPixelColor(second, strip.Color(255, 0, 0));

strip.setPixelColor(m, strip.Color(0, 255, 0));
strip.setPixelColor(s, strip.Color(0, 0, 255));

for (uint16_t i = 0; i < strip.numPixels(); i++) {
if (i != s && i != m)
strip.setPixelColor(i, strip.Color(0, 0, 0));
strip.show();
}
}

and in two weeks you did not find the time to read how to post code in this forum??

please use code tags and give us ALL your code.. you are missing all the variable definitions

void NeoPixel::setM(int m)
void NeoPixel::setS(int s)
void NeoPixel::setTime(int s, int m)

are you coding in the NeoPixel class?

please give us your code that can compile.. you have a stray } in the fragment of code above...

And something that does a bit of what you describe would seem a minimum...

for example this is messed up...

for (uint16_t i = 61; i

if (i != s)
  strip.setPixelColor(i, strip.Color(0, 0, 0));