www.pudn.com > fuzhibiaodashifanyi.rar > fuzhifanyi.cpp


#include 
   
  void main() 
  { 
	  char a[50],b[50],c[50]; 
	  char ch,T; 
	  int i=0,k=0,t=0; 
	  cout<<"please input the expression(end with #):"<>a; 
	  for(int j=2;a[j]!='#';j++) 
		 {  ch=a[j]; 
		    switch(ch) 
			{ 
			  case '+': 
			  case '-': 
			    if(k==0) 
					{ c[k]=ch; k++;} 
			    else 
					{ switch(c[k-1]) 
						{ case '*': 
							 cout<<"T="<