using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Diagnostics;
namespace ConsoleApplication4
{
class Program
{
enum weekday
{
sunday,monday,tuesday,wednesday,thursday,friday,saturday
};//枚举类型
struct PhoneBook
{
public string name;
public uint age;
public string phone;
public string address;
}//结构类型
static void Main(string[] args)
{
PhoneBook p;
p.name = "mm";
Debug.WriteLine(p.name);//输出窗口显示
//weekday day;
//day = (weekday)1;
Console.WriteLine(p.name);
Console.ReadKey();
}
}
}
时间: 2024-10-29 05:49:51