블로그 이미지
Magic_kit
study 관련자료를 한곳으로 자기 개발 목적으로 재태크 재무 관리 목적으로 일상생활의 팁을 공유 하기 위하여 블로그를 개설 하였습니다.

calendar

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

Category

Recent Post

Recent Comment

Archive

2009. 8. 12. 16:19 .Net Project/.Net 3.5 Sp1
반응형


using System;

public class DefaultParaes
{
    public static void PrintMessage()
    {
        PrintMessage("디폴트 메시지", 1, false);
    }

    public static void PrintMessage()
    {
        PrintMessage(m, 1, false);
    }

    public static void PrintMessage()
    {
        PrintMessage(m, n false);
    }

    public static void PrintMessage()
    {
        PrintMessage(m, 1, bBeep);
    }
   

    public static void PrintMessage(String m, int n, bool bBeep)
    {
        for (int i = 0; i < n; i++)
        {
            Console.WriteLine(m);
           
        }
        if (bBeep)
        {
            Console.Beep();
           
        }

    }
      
    public static void Main()
    {
        PrintMessage("메시지입니다", 1, false);
        PrintMessage("중요한메시지", 3, true);
        PrintMessage("한번만 출력되는 메시지");
        PrintMessage("소리와 함께 출력되는 메시지", true);
        PrintMessage();
    }
  

}

반응형

'.Net Project > .Net 3.5 Sp1' 카테고리의 다른 글

60장 인덱스(Index)  (0) 2009.08.12
59장 속성(Property)  (0) 2009.08.12
57장 Method(메서드)  (0) 2009.08.12
56장 JavaScript Access(자바접근)  (0) 2009.08.11
55장 DropDownList  (0) 2009.08.11
posted by Magic_kit