Microsoft Visual Studio 2010: не могу сделать форму программе.
Помогите срочно товарищи! Кто работал с Microsoft Visual Studio 2010? Немогу сделать форму программе! Кто умеет? Выручайте плиззз! вот прога
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace peoples { class People { public String Family { get; set; } public int Positiоn { get; set; } public int Weight { get; set; } public override string ToString() { return this.Family + "\t" + this.Positiоn + "\t" + this.Weight; } } } using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace peoples { class Program { static void Main(string[] args) { var peoples = new List<people>(); peoples.Add(new People() { Family = "Иванов", Positiоn = 1, Weight = 20 }); peoples.Add(new People() { Family = "Петров", Positiоn = 3, Weight = 10 }); peoples.Add(new People() { Family = "Васькин", Positiоn = 4, Weight = 23 }); System.Console.Write("Введите вес: "); var weight = Int32.Parse( System.Console.ReadLine()); foreach (People p in peoples.Where<people>(x => (x.Weight < weight)).ToList()) { Console.WriteLine(p.ToString()); } System.Console.ReadKey(); } } } |
Часовой пояс GMT +4, время: 01:29. |
Powered by vBulletin® Version 4.5.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.