본문 바로가기

   
Programming/C#

콘솔 관련 기능들

반응형

using System;

 

namespace Csharp

{

       class Struct

       {

             public static void Main(string[] args)

             {

                    //콘솔과 관련 기능..

                    //Console.Title = "에제입니다.";

                    //Console.WindowWidth = 30;//컬럼/가로

                    //Console.WindowHeight = 5;///세로

 

 

                    Console.SetCursorPosition(20, 5);

                    Console.WriteLine("여기요");

 

                    Console.SetCursorPosition(10, 3);

                    Console.WriteLine("이쪽!!");

 

                    Console.BackgroundColor = ConsoleColor.Yellow;

                    Console.WriteLine("!!");

                    Console.WriteLine("!!");

                    Console.WriteLine("!!");

 

                    Console.Clear();

 

             }

       }

}

 

반응형