首页 新闻 搜索 专区 学院

计算面积、体积的程序运算结果不符合预期!请各位帮忙!

0
悬赏园豆:20 [已关闭问题]
<P><STRONG>项目内有如下三个文件:Default.aspx,Default.aspx.cs,stone.cs。</STRONG></P> <P><STRONG>Default.aspx的代码为:</STRONG></P> <P>&lt;%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="myweb._Default" %&gt;</P> <P>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</A>"&gt;</P> <P>&lt;html xmlns="<A href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</A>" &gt;<BR>&lt;head runat="server"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;title&gt;love&lt;/title&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;/head&gt;<BR>&lt;body bgcolor="White"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;form id="form1" runat="server"&gt;<BR>&nbsp;&nbsp;&nbsp; &lt;div&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID="Label1" runat="server" Text="长度"&gt;&lt;/asp:Label&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:TextBox ID="TextL" runat="server"&gt;&lt;/asp:TextBox&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID="Label2" runat="server" Text="宽度"&gt;&lt;/asp:Label&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:TextBox ID="TextW" runat="server"&gt;&lt;/asp:TextBox&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Label ID="Label3" runat="server" Text="厚度"&gt;&lt;/asp:Label&gt;<BR>&amp;nbsp;&amp;nbsp;&amp;nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:TextBox ID="TextH" runat="server"&gt;&lt;/asp:TextBox&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;asp:Button ID="myButton" runat="server" onclick="myButton_Click" Text="计算结果" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;br /&am
设计无量的主页 设计无量 | 初学一级 | 园豆:80
提问于:2008-06-05 20:56
< >
分享
其他回答(1)
0
代码不全
风海迷沙 | 园豆:4453 (老鸟四级) | 2008-06-06 09:50
0
全部代码发上来,,,
Jared.Nie | 园豆:1940 (小虾三级) | 2008-06-14 16:40
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册