?? program.cs
字號:
?using System;
using System.Collections.Generic;
using System.Text;
namespace 構(gòu)造函數(shù)
{
/************************
* 程序描述:構(gòu)造函數(shù)的實(shí)例
* 創(chuàng) 建 人:ncbcy@eiTarget
* 版 本 號:1.0.0
* 修改記錄:0
***********************/
class Program
{
static void Main(string[] args)
{
PersonInfo P001 = new PersonInfo(001,"女",165);
Console.WriteLine(P001.pid + "\t" + P001.sex + "\t" + P001.tall);
Console.ReadLine();
}
}
class PersonInfo
{
public int pid;
public string sex;
public int tall;
public PersonInfo(int gpid, string gsex, int gtall)
{
pid = gpid;
sex = gsex;
tall = gtall;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -