구조체, 나열형, foreach
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace datetype { //구조체 선언 struct structTest { public int a; public string b; } //나열형 선언 public enum Grades { F = 0, D = 1, C = 2, B = 3, A = 4 }; class Program { //구조체 선언 public struct CoOrds { public int x, y; public void test(int p1, int p2) { x = p1; y = p2; } } static void Main(string[] args) { //구조체의 사..
청강컴정/C#
2009. 5. 4. 02:10