DevC++5.11编译器GCC 4.9.2
#include<stdio.h>
#include<string.h>
float fm(char*p,float n){ //计算一个幂次的值
float a=0;
if(*p=='x')a=1;
else {
while(*p>=48&&*p<=57){
a=10*a+*p-48;
p++;
}
}
if(*p!='x')return 0;
else{
p++;
if(*p=='^'){
p++;
float m=0;
while(*p>=48&&*p<=57){
m=10*m+*p-48;
p++;
}
float num=1;