일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
- Parse 사용법
- list
- List 추가
- 기본 게이트웨이
- 네트워크 용어
- Visual Studio
- OSI 3계층
- List 정렬
- BFS
- List 제거
- C# Contains
- 알고리즘
- IP주소
- DP
- list 사용법
- c# list
- 백준
- Tostring 사용법
- 호스트
- 서브넷
- C++
- 서브넷 마스크
- TCP/IP
- AddRange
- C# Find
- List 찾기
- 호스트 주소
- InsertRange
- 네트워크
- c#
- Today
- Total
목록2023/08 (6)
CodeLabs

Columns 생성 DataTable data = new DataTable(); data.Columns.Add("date", typeof(DateTime)); data.Columns.Add("name", typeof(string)); data.Columns.Add("menu", typeof(string)); Data 삽입 - 1 DataTable에 있는 NewRow를 통해 Row의 컬럼을 DataRow에 정의하여 사용한다. DataRow row = data.NewRow(); row["date"] = DateTime.Now; row["name"] = "Mike"; row["menu"] = "Spaghetti"; data.Rows.Add(row); 배열을 통해 DataRow를 한번에 정의하여 사용한다 dat..
싱글톤 패턴 정의는 단순하다. 싱글톤 인스턴스를 오직 하나만 생성해서 사용한다. 사용법과 문제점을 알아보자. public class Singleton { private static Singleton instance; private Singleton() { } public static Singleton GetInstance() { if(instance == null) instance = new Singleton(); return instance; } public void print() { Console.WriteLine("싱글톤 호출"); } } public class Program { static void Main(string[] args) { Singleton.GetInstance().print(); ..

using System; namespace _2805 { class Program { static long[] N_M, arr; static long maxValue; static bool Chack(long mid, long[] arr) { long cnt = 0; for (long i = 0; i = N_M[1]; } static void Solution(long[] arr, long wood) { long left = 1; long result = 0; while(left result ? mid : result; left = mid + 1; } else maxValue = mid - 1; }..

using System; using System.Collections.Generic; namespace _2667 { class Program { static int n, cnt; static int[] dx = { 0, 1, 0, -1 }, dy = { -1, 0, 1, 0 }; //상하좌우 표현 static string[] input = new string[25]; static bool[,] vi = new bool[25, 25]; static List result = new List(); static void DFS(int i, int j) { vi[i, j] = true; cnt++; for(int k=0; k

using System; class Program { static int n = int.Parse(Console.ReadLine()); static int[,] map = new int[n, n]; static int[] cnt = new int[2]; static void Divide(int n, int y, int x) { for (int i = y; i < y + n; i++) { for (int j = x; j < x + n; j++) if (map[i, j] != map[y, x]) { Divide(n / 2, y, x); Divide(n / 2, y + n / 2, x); Divide(n / 2, y, x + n / 2); Divide(n / 2, y + n / 2, x + n / 2); re..