I'm getting a mising ). error with a condition

if (i=0;i<5;i++)

?

Was that intended to be a for loop?

Shoudn't it rather be something like this:

for (i = 0; i < 5; i++) {
    //code to be repeated 5 times
}

Yes, you simply got your for and your if confused.

Ah right, thank you :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.