전체 글115 Strategy Pattern Head First Design Pattern 개정판 전략 패턴 내용을 C# Console 프로젝트로 구현 Program.cs using System; namespace StrategyPattern { internal class Program { static void ShowStrategyPattern() { Console.WriteLine("[ Strategy Pattern ]"); Console.WriteLine("객체의 행동을 쉽게 확장하거나, 변경할 수 있는 클래스들의 집합으로 캡슐화하는 방식"); Console.WriteLine("알고리즘군을 정의하고 캡슐화해서 각각의 알고리즘군을 수정해서 쓸 수 있게 해 줍니다."); Console.WriteLine("전략 패턴을 사용하면 클라이언트로부터 알고.. 2023. 8. 24. Hard Disk's Serial Number With Command Prompt 1. "cmd.exe" 실행 2. 아래 명령 입력 wmic diskdrive get model,serialnumber 2023. 7. 19. CString to char array ● MFC CString to char array CString cs = _T("ABCDE"); CStringA csa(cs); int buff_size = csa.GetLength() + 1; char* buff = new char[buff_size]; memcpy(buff, csa.GetBuffer(), csa.GetLength()); buff[buff_size - 1] = 0x0D; delete[] buff; 2023. 7. 18. Virtual Serial Ports Emulator ● 가상 포트 생성 Create New Device ... Device type : Pair 선택 ● 가상 포트 선택 ● 생성 결과 확인 2023. 7. 17. 이전 1 2 3 4 5 6 7 8 ··· 29 다음