C#   非静态的字段、方法或属性“ConsoleApplication9.ad.SwaplfMax(int, int)”要求对象引用
什么意思?怎么改啊。using System;
using System.Collections.Generic;
using System.Text;namespace ConsoleApplication9
{
    class ad
    {
        public int a, b;
        public void SwaplfMax(int a,int b)
        {
            int t;
            if (a < b)
            {
                t = this.a;
                this.a = this.b;
                this.b = t;
            }
        }
        static void Main(string[] args)
        {
            Console.WriteLine("请输入两个数");
            ad max = new ad();
            max.a = int.Parse(Console.ReadLine());
            max.b = int.Parse(Console.ReadLine());
            SwaplfMax(max.a,max.b);
            Console.WriteLine("a={0},b={1}", max.a, max.b);
        }
    }
}