전체 글 190

Understanding Initialization in C++: Delegating Constructors, Non-Static Data Member Initializers, and Default Function Arguments

Delegating Constructors A delegating constructor is a constructor that calls another constructor from the same class. This is useful when you want to reuse code from another constructor in the same class. By delegating to another constructor, you can avoid duplicating code and keep your code clean and concise. Here is an example of how delegating constructors can be used in C++: #include class R..

카테고리 없음 2023.02.08

1장 : IP 주소 · 서브넷 마스크 · 기본 게이트웨이의 의미

1장 : IP 주소 · 서브넷 마스크 · 기본 게이트웨이의 의미 우리는 어떻게 인터넷 공간에서 우리가 원하는 웹사이트에 도달할 수 있을까? 이러한 궁굼증을 해결하기 위해서는 명령 프롬프트 창을 알아야 한다. 명령 프롬프트 창이란 Windows에 기본으로 제공되는 프로그램으로, CLI 기반의 명령어를 입력하여 수행할 수 있게 해 주는 셸이다. 명령 프롬프트 창에 ipconfig 명령어를 입력하면 다음과 비슷한 화면을 볼 수 있다. 이더넷 어댑터 로컬 영역 연결 IPv4 주소 192.168.0.13 서브넷 마스크 255.255.255.0 기본 게이트웨이 192.168.0.1 이더넷 어댑터(Ethernet Adapter) : LAN 카드를 의미한다. LAN 카드를 NIC(Network Interface Con..

독서 2023.02.03

Understanding Default and Delete Qualifiers in C++ Programming

In this article, we will take a closer look at what the default and delete qualifiers are, how they are used, and their benefits and limitations. We will also explore real-world use cases and provide code examples to help illustrate the concepts discussed. Introduction to Default and Delete Qualifiers in C++ C++ provides two keywords, default and delete, that can be used to control the behavior ..