コード例 #1
0
    public static void Main()
    {
        MyStruct msNew = new MyStruct();

        msNew.Show();
        msNew.xprop = 20;
        msNew.Show();
    }
コード例 #2
0
ファイル: struct.cs プロジェクト: hellomyzn/nekoC-
    public static void Main()
    {
        MyStruct.Show();
        MyStruct.x = 20;
        MyStruct.Show();

        YourStruct ys;

        ys.y = 10;
        ys.Show();
    }
コード例 #3
0
ファイル: Program.cs プロジェクト: JyJyJ4JyJ/Repozitory
        static void Main(string[] args)
        {
            MyStruct <double> list = new MyStruct <double>();

            list.Add(1.0);
            list.Add(4.5);
            list.Add(-76.6338);
            list.Add(-7);
            list.Add(0.000000000000001);
            foreach (var item in list)
            {
                Console.WriteLine(item);
            }
            list.RemoveAllElementsAfterTheMax();
            list.Show();
            Console.WriteLine(list.Average());
            Console.WriteLine(list.SmallerThanAverageCount());
            Console.ReadKey();
        }