标签:style blog color ar 2014 div log sp line
public struct snakepoint { public int x; public int y; } static void Main(string[] args) { snakepoint s = new snakepoint(); s.x = 5; s.y = 10; ArrayList a = new ArrayList(); a.Add(s); Console.WriteLine((snakepoint )a[0].x+","+((snakepoint)a[0]).y);
{ student lch = new student(); lch.no = 1; lch.name = "xxx"; lch.Cshap = 90; lch.web = 78; lch.datebase = 83; lch.sum = lch.Cshap + lch.web + lch.datebase; Console.WriteLine(("学号·{0}姓名·{1}Cshap·{2}web·{3}datebase·{4}总分·{5}"), lch.no, lch.name, lch.Cshap, lch.web, lch.datebase, lch.sum); } struct student { public int no; public string name; public int Cshap; public int web; public int datebase; public int sum; }
标签:style blog color ar 2014 div log sp line
原文地址:http://www.cnblogs.com/jackjms/p/3939530.html