悬赏园豆:20
[已解决问题]
解决于 2008-07-03 09:12
<P>我编了一段程序 下面是代码:using System;<BR>using System.Drawing;<BR>using System.ComponentMoel;<BR>using System.Data;<BR>using System.Drawing;<BR>using System.Windows.Forms;<BR>using System.Bank;</P>
<P>namespace ATM<BR>{<BR> partial class Form1:System.Windows.Forms.Form<BR> { private System.Windows.Forms.GroupBox groupBox1;<BR> private System.Windows.Forms.GroupBox groupBox2;<BR> private System.Windows.Forms.Button button1;<BR> private System.Windows.Forms.Button button2;<BR> private System.Windows.Forms.Button button3;<BR> private System.Windows.Forms.Button button4;<BR> private System.Windows.Forms.Button button5;<BR> private System.Windows.Forms.Button button6;<BR> private System.Windows.Forms.Button button7;<BR> private System.Windows.Forms.TextBox textBox1;<BR> private System.Windows.Forms.Label label1;<BR> private System.Windows.Forms.Label label2;<BR> private System.Windows.Forms.TextBox textBox2;<BR> private System.Windows.Forms.Button button8;<BR> private System.Windows.Forms.RichTextBox richTextBox1;<BR> private System.Windows.Forms.Label label3;<BR> private System.Windows.Forms.TextBox textBox3;<BR> private System.Windows.Forms.Button button9;<BR> private bool IsVefified;<BR> private bool IsWithdraw;<BR> private bool IsDeposit;<BR> private bool IsTransfer;<BR> private bool IsUpdatePwd;<BR> <BR> private bool IsTransfering;<BR> private string TransferCardNo;<BR> private decimal TransferAmount;<BR> private Bank.Bank bank;</P>
<P> private System.ComponentModel.Container Components=null;<BR> public Form1()<BR> {<BR> InitializeComponrnt();<BR> IsVerifed=false;<BR> IsWithdraw=false;<BR> IsDeposit=false;<BR> IsTransfer=false;<BR> IsUpdatePwd=false;<BR> IsTransfering=false;<BR> bank=new Bank.Bank();<BR> }<BR> protected override void Dispose( bool disposing)<BR> {<BR> if (components !=null)<BR> {<BR> components.Dispose();<BR> }<BR> }<BR> base.Dispose(dispoing);</P>
<P> }<BR>#region Windows Form Designer generated code<BR> private void InitializeComponent()<BR>#endregion<BR> [STAThread]<BR> static void main()<BR>{<BR> Application.Run (new Form1());<BR>} <BR>}</P>
<P>但总是出现错误 错误提示是:警告 1 类名“?”不是该语言的有效标识符。 0 0 <BR>错误 2 类、结构或接口成员声明中的标记“base”无效 d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 60 9 ATM<BR>错误 3 方法必须具有返回类型 d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 60 14 ATM<BR>错误 4 应输入标识符 d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 60 30 ATM<BR>错误 5 应输入 class、delegate、enum、interface 或 struct d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 64 13 ATM<BR>错误 6 应输入 class、delegate、enum、interface 或 struct d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 67 12 ATM<BR>错误 7 应输入 class、delegate、enum、interface 或 struct d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 69 27 ATM<BR>错误 8 应输入类型、命名空间定义或文件尾 d:\My Documents\Visual Studio 2008\Projects\Project1\ATM\ATM\Form1.cs 71 1 ATM<BR>我不知该怎么改正,求大家帮忙,谢谢!!<BR> <BR></P>