What is this error I am getting?
Sorry, I posted this in the C# forum first but I meant to post it here.
What is this error I am getting and does anybody know how I can fix it? I don't do C++, only C but am using some image displaying code I found on the internet that was written in C++.
"name lookup of `n' changed for new ISO `for' scoping "
Code:
void C_ImageSet::AddImage (C_Image* newimage)
{
C_Image ** pTempImg = new C_Image* [nImages+1];
for (int n=0;n<nImages;n++) pTempImg[n]=img[n]; // (pointer copy)
delete[] img;
img=pTempImg;
img[n]=newimage;
nImages++;
}