If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

A large percentage of the bugs (and ones hard to trace too!) inside programs I've worked on have involved accidentally using a single equals sign within a If statement. I think it ranks up there somewhere high on the bugscale.

a few comments on the original code you posted. it isnt good programming practice to define vars inside a for loop and your better off putting your definitions like that "const char"(which should be a const int) in the global section so you can use that in any loops which may come up in other functions. it would be easier to input all the band names from a file so you dont have to hard-code em all, but i bet you havent gotten that far yet, hehe.

anyway, i think you'll find this code to be shorter and easier to understand than what you have(which doesnt work for a few reasons stated above) and all in all better.