phjung1 Blog

「😅」

GDB tutorial

GDB tutorial Introdution A debugger is a program that simulates /runs another program and allows you to: Pause and continue its execution Set “break points” or conditions where...

Modularity 3

Modularity3 Namespaces In addition to functions (§1.3), classes (§2.3), and enumerations (§2.5), C++ offers namespaces as a mechanism for expressing that some declarations belong together and tha...

Modularity 2

Modularity - 2 Separate Compilation C++ supports a notion of separate compilation where user code sees only declarations of the types and functions used. The definitions of those types and functi...

Modularity1

Modularity Introduction A C++ program consists of many separately developed parts, such as functions (§1.2.1), userdefined types (Chapter 2), class hierarchies (§4.5), and templates (Chapter 6). ...

User-Defined Type -2

User-Defined Types -2 Classes Having the data specified separately from the operations on it has advantages, such as the ability to use the data in arbitrary ways. However, a tighter connection...

User-Defined Type

User-Defined Types Introduciton We call the types that can be built from the fundamental types (§1.4), the const modifier (§1.6), and the declarator operators (§1.7) built-in types. C++’s set of ...

The Basics -2

C++ supports two notions of immutability: const: meaning roughly ‘‘I promise not to change this value.’’ This is used primarily to specify interfaces so that data can be passed to function...

The Basics

The Basics Functions The main way of getting something done in a C++ program is to call a function to do it. Defining a function is the way you specify how an operation is to be done. A function ...

Don't Repeat Yourself

Don’t Repeat Yourself For such a common use case as appending a semicolon at the end of a series of lines, Vim provides a dedicated command that combines two steps into one Suppose that we have a...

Exploring the System

Exploring the system Now that we know how to move around the file system, it’s time for a guided tour of our Linux system. Before we start, however, we’re going to learn some more commands that wi...