一些程序,虎哥帮忙
if(ispostback)
{string Sfirst=request.form["txtfirst"];
string Ssecond=request.form["txtsecond"]
string Soperation=request.form["optoperaton"];
int nf=0;
int ns=0;
这里冒出的nf.ns是何居心啊!int.tryparse(Sfirst,out nf);
int.tryparse(Sseconed,out ns);这两句是什么意思啊
int nr=0;把0给了nr吗?
if(soperation=="add")
nr=nf+ns;
else
nr=nf-ns;}
虎哥!+_+
int b=0;
int.tryparse(a,out b);
/*把a转换成数字并赋值给b*/