何位能讲讲这个程序
哪位能讲讲这个程序
main()
{
int type;
double op2;
char s[MAXOP];
while((type = getop(s)) != EOF){
switch(type){
case NUMBER:
push(atof(s));
break;
getop和atof函数里的参数s是局部变量?和char s[MAXOP]的s取值是否一样??这里的s代表什么意思?
------解决方案--------------------
char s[MAXOP]; 就是这个 - -
main()
{
int type;
double op2;
char s[MAXOP];
while((type = getop(s)) != EOF){
switch(type){
case NUMBER:
push(atof(s));
break;
getop和atof函数里的参数s是局部变量?和char s[MAXOP]的s取值是否一样??这里的s代表什么意思?
------解决方案--------------------
char s[MAXOP]; 就是这个 - -