createaccount.cs
来自「csharp-solution,C#高效编程源码」· CS 代码 · 共 20 行
CS
20 行
//#define DEBUG_ACCOUNT
using System;
using System.Collections;
using Banking;
// Test harness
class CreateAccount
{
public static void Main()
{
// Create a bank account and test the DumpToScreen method
long accNo1 = Bank.CreateAccount(AccountType.Checking, 100);
BankAccount myAccount = Bank.GetAccount(accNo1);
// Add a line of code to call DumpToScreen
myAccount.DumpToScreen();
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?