Forum Discussion
Altera_Forum
Honored Contributor
16 years agoabout niosII
Hi, I write in NiosII this instruction int a,b; int r; a=4; b=98; r=a&&b; the problem i have a message error ,when i use && ,I don't know why ? can sameone help me to use this com...
Altera_Forum
Honored Contributor
16 years agoi try with espace but i have the some error
this a part of code of erode int **IM ,**im1; unsigned char r,u,ml,mm,mr,d; for(int i=1;i<height-1;i++){ for(int j=1;j<width-1;j++) { u = im1[i-1][j]; ml = im1[j-1];mm = im1[j]; mr = im1[j+1];
d = im1[i+1][j];
r= (u && d) && (ml && mr && mm);
im[j]=r }} this code turn witn succes under visual c++ but under nios II a i have this error: expected unqualified-id before processeur failed