using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace StructParameter
{
class Program
{
static void Main(string[] args)
{
//引用
Student student = new Student();
student.age = 21;
student.name = "apple";
Console.WriteLine(student.name + ":" + student.age);
}
/// <summary>
/// 定义结构传递参数:Student
/// </summary>
public struct Student
{
public int age;
public string name;
}
}
}