Char optr [7]={' + ', '-', '*', '/', '(',') ', '#'};
Int CMPTR [7] [7]=
,1,2,2,2,1,1 {{1},
,1,2,2,2,1,1 {1},
,1,1,1,2,1,1 {1},
,1,1,1,2,1,1 {1},
,2,2,2,2,3,0 {2},
,1,1,1,0,1,1 {1},
,2,2,2,2,0,3 {2}
};
{char precede (char e, char c)
Int a, b;
for (int i=0; I & lt; 7. I++) {
If (optr [I]==e) a=I;
If (optr [I]==c) b=I;
}
The switch (CMPTR [a] [b])
{
Case 1:
Return '& gt; ';
break;
Case 2:
Return '& lt; ';
break;
Case 3:
Return '=';
break;
Default:
Printf (" PRE ERROR! \n");
Return 1;
break;
}
}
CodePudding user response:
You B uninitialized, the DEBUG mode will prompt you for logical reasons, cause you might use uninitialized variables,CodePudding user response: