본문 바로가기 메뉴 바로가기

Today I Learned

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Today I Learned

검색하기 폼
  • 분류 전체보기 (5)
    • Today I learned (5)
      • 자료구조 (3)
      • C (0)
      • C# (1)
      • Java (0)
  • 방명록

Today I learned/C# (1)
delegate(델리게이트)

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace delegateCalculator { class Program { static void Main(string[] args) { Calculator cal = new Calculator(); Console.WriteLine("Add Result : " + cal.a(1, 2, 3, 4, 5)); //무제한 인수를 통해 2개 이상의 인자를 모두 받을 수 있음 Console.WriteLine("Sub Result : " + cal.s(10, 1, 2, 3, 4)); //10 - 1 - 2..

Today I learned/C# 2017. 10. 24. 23:54
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바