using System;
struct Sample
{
public string name;
public int age;
}
class MainClass
{
static void Main()
{
Sample sample;
sample.name = "Kamimura";
sample.age = 0;
Console.WriteLine("Name {0}",sample.name);
Console.WriteLine("Age {0}",sample.age);
}
}
0 コメント:
コメントを投稿