일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Tostring 사용법
- 서브넷 마스크
- 네트워크 용어
- InsertRange
- C++
- 네트워크
- C# Contains
- IP주소
- 호스트
- List 추가
- C# Find
- list 사용법
- OSI 3계층
- AddRange
- 기본 게이트웨이
- 호스트 주소
- List 정렬
- c# list
- List 제거
- DP
- 알고리즘
- Visual Studio
- List 찾기
- 서브넷
- Parse 사용법
- TCP/IP
- BFS
- 백준
- list
- c#
- Today
- Total
목록c# (16)
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 Stair { private int[] cost = new int[301]; internal int this[int index] { get { return cost[index]; } set { cost[index] = value; } } } class Program { static int t = int.Parse(Console.ReadLine()); static int[] dp = new int[301]; static Stair stair = new Stair(); static void Main(string[] args) { for (int i = 0; i < t; i++) stair[i] = int.Parse(Console.ReadLine()); dp[0] = sta..

using System; using System.Collections.Generic; using System.Linq; namespace _2178 { class Pair { public Pair(int first_, int second_) { first = first_; second = second_; } public int second { get; set; } public int first { get; set; } } class Program { static int n, m; static int[] dx = { 0, 1, 0, -1 }, dy = { -1, 0, 1, 0 }; static int[,] check = new int[100, 100]; static string[] input = new s..