public static void Main()
        {
            double latitude = 18.037986;
            double longitude = 28.870097;

            Location home = new Location(latitude, longitude, Planet.Earth);
            Console.WriteLine(home);
        }
        static void Main(string[] args)
        {
            Location home = new Location(18.037986, 28.870097,Planet.Earth);
            Location researhLab = new Location(78.037986, -28.870097, Planet.Venus);
            Location villa = new Location(-8.037986, -178.870097, Planet.Neptune);

            Console.WriteLine("{0}\n{1}\n{2}",home,villa,researhLab);
        }
示例#3
0
 public static void Main(string[] args)
 {
     Location home = new Location(18.037986, 28.870097, Planet.Earth);
     Console.WriteLine(home);
     Console.ReadKey(true);
 }