public  struct MyStruct
{
public string str; public int number; } class Program { static void Main(string[] args) { MyStruct myStruct =new MyStruct(); myStruct.str="www.guowenke.tk"; myStruct.number=1989; MyClass mc=new MyClass(); mc.output(myStruct); Console.ReadKey(); } }

Class MyClass
{
public void output(MyStruct  ms)
{
Console.WriteLine(ms.str+ms.number.ToString());
}
}

  



 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2022-12-23
  • 2021-11-08
  • 2022-01-22
  • 2021-06-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案