示例#1
0
        public static void Main()
        {
            Location home = new Location(18.037986, 28.870097, Planet.Earth);
            Console.WriteLine(home);

            Location school = new Location(15.833324, 44.035237, Planet.Jupiter);
            Console.WriteLine(school);
        }
 public static void Main()
 {
     Location home = new Location(18.037986, 28.870097, Planet.Earth);
     Location ddd = new Location();
     Console.WriteLine(home);
     Console.WriteLine(ddd);
     home.Planet = (Planet)Enum.Parse(typeof(Planet), "Mars");
     Console.WriteLine(home);
 }
        public static void Main()
        {
            Console.Title = "Problem 1.	Galactic GPS";

            Location home = new Location(18.037986, 28.870097, Planet.Earth);
            Location marsLocation = new Location(40.0530202, 21.345322, Planet.Mars);

            Console.WriteLine(home);
            Console.WriteLine(marsLocation);
        }
        static void Main(string[] args)
        {

            Location home = new Location(18.037986,28.870097,Planets.Earth);
            Location bigPlanet = new Location(45.045588, 45.045599, Planets.Saturn);
            Location smallPlanet = new Location(45.045533, 45.045501,Planets.Uranus);


            Console.WriteLine(home);
            Console.WriteLine(bigPlanet);
        }
示例#5
0
        static void Main()
        {
            Location home = new Location(18.037986, 28.870097, Planet.Earth);
            //Console.WriteLine(home);

            List<Location> solarSystem = new List<Location>
            {
                new Location(40.037986, 70.870097, Planet.Neptune),
                new Location(30.037986, 50.870097, Planet.Saturn),
                new Location(20.037986, 30.870097, Planet.Mars),
                home,
                new Location(15.870097, 20.037986, Planet.Venus),
                new Location(25.870097, 40.037986, Planet.Jupiter),
                new Location(35.870097, 60.037986, Planet.Uranus),
                new Location(10.870097, 10.037986, Planet.Mercury),
            };
            solarSystem.OrderBy(pl => pl.Latitude).ThenBy(pl => pl.Longitude).ToList().ForEach(pl => Console.WriteLine(pl));
        }
 static void Main(string[] args)
 {
     Location home = new Location(18.037986, 28.870097, Planet.Earth);
     Console.WriteLine(home);
 }
示例#7
0
 static void Main()
 {
     Location some = new Location(15.037986, 100.0321, Planet.Mars);
     Console.WriteLine(some);
 }
 static void Main()
 {
     Location home = new Location(18.3322, 18.2321, planet.Earth);
     Console.WriteLine(home);
 }
 static void Main(string[] args)
 {
     Location location = new Location(90, 180, Planet.Earth);
     Console.WriteLine(location);
 }
示例#10
0
 static void Main()
 {
     Location gps = new Location(-90, 180, Planet.Earth);
     Console.WriteLine(gps);
 }