okey this is my first time i got a proplem witch i could not solve with google :s
any way this is just the basic of the code
i'm using Microsoft visual c++ 2010 express
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
void something(int drawing[300][600], int blabla[30][60]){
int f=0;
int c=0;
for(int j=0;j<30;j++){
for(int i=0;i<60;i++){
for(int o=0; o<50; o++){
for(int u=0; u<50; u++){
drawing[j+f][i+c]=blabla[j][i];
}
}
c+=10;
}
f+=10;
}
}
well the anoying thing is it doesnt work
it works though if i do it like this drawing[j][i+c]
or this drawing[j][i+f]
btw sorry about the terriple english ;)
and thanks
if the whole thing is a function called something, you should probably put an opening curly brace after your right parentheses ){
edit : (oh and I didn't look carefully but you may be going out of your bounds in drawing)
edit edit : (you are definitely going out of bounds, all the way to 330)
edit edit edit : your problem is in the f+= 10; I don't know the context so I don't know if it's necessary, but it ends up that j+f > 300 when you try to access drawing[j+f][i+c]