chapter7/evaluation.c
long eval_op(long x, char* op, long y){
	if(strcmp(op,"+")==0){	return x + y;	}
	if(strcmp(op,"-")==0){  return x - y;   }
	if(strcmp(op,"*")==0){  return x * y;   }
	if(strcmp(op,"/")==0){  return x / y;   }
	return 0;
}
/* Use operator string to see which operation to perform */
Use operator string to see which operation to perform
Use operator string to see which operation to perform
long eval_op(long x, char* op, long y){
	if(strcmp(op,"+")==0){	return x + y;	}
	if(strcmp(op,"-")==0){  return x - y;   }
	if(strcmp(op,"*")==0){  return x * y;   }
	if(strcmp(op,"/")==0){  return x / y;   }
	return 0;
}
long eval_op ( long x , char * op , long y ) { if ( strcmp ( op , " " ) == 0 ) { return x + y ; } if ( strcmp ( op , " " ) == 0 ) { return x - y ; } if ( strcmp ( op , " " ) == 0 ) { return x * y ; } if ( strcmp ( op , " " ) == 0 ) { return x / y ; } return 0 ; }
Use operator string to see which operation to perform
Use operator string to see which operation to perform