전체 글 (143) 썸네일형 리스트형 C# [11] ArrayList, Queue, Stack, Hashtable using System;using System.Collections;class Program{ public static void Main(string[] args) { //ArrayList ArrayList al = new ArrayList(); al.Add(1); al.Add("Hello"); al.Add(3.4); al.Add(true); foreach (var item in al) { Console.WriteLine(item); } al.Remove("Hello"); //Queue Queue qu = new Queue().. C# [10] 데이터 저장을 위한 배열 클래스의 개념& 배열 초기화, 값 저장, 길이 출력 실습 & foreach 문을 통한 배열의 값 출력하기 실습 using System;class Program{ public static void Main(string[] args) { int[] array1 = new int[3]; array1[0] = 10; array1[1] = 20; array1[2] = 30; int[] array2 = new int[] { 1, 2, 3 }; int[] array3 = { 4, 5, 6 }; Console.WriteLine(array1.Length); for (int i = 0; i C# [9] MSDN & 닷넷 편집기로 코드 실행하기 & 속성 및 메서드 찾기 https://learn.microsoft.com/ko-kr/dotnet/csharp/ C# 가이드 - .NET 관리 언어C# 가이드에는 C#을 배우고 .NET 앱 작성을 시작하는 데 필요한 모든 것이 포함되어 있습니다. 프로그래밍 C# 알아보기 - 초보 개발자, C#을 처음 사용하는 개발자, 숙련된 C# / .NET 개발자용입니다.learn.microsoft.com 이전 1 ··· 8 9 10 11 12 13 14 ··· 48 다음