getchar, putchar, and input buffers

Directory 1. Literature of getchar and putchar 1.1 Literature on getchar: 1.2 Literature on putchar 1.3 Return value problem 2. Enter a character from the keyboard 2.1 Principle 2.2 How to understand: ? Understanding 1: ? Understanding 2: 2.3 About how the program ends 3. Enter password 3.1 Calling getchar once to read is equivalent […]

Quicksort introduced for Dutch flag problem

Article directory 1. The Dutch flag problem 2. Quick Sort 1. Dutch flag question Online OJ: 75. Color classification The Dutch flag problem is to say, given you an integer array, and then given you a K value, this value must exist in the original array, it is required to put the elements smaller than […]

JAVA time formatting tools, UTC time tools, default time zone formatting tools

Demo of some functions //Analysis of time in yyyy-MM-dd HH:mm:ss format LocalDateTime parseTime = TimeUtils. parse(“2023-02-02 00:00:00”); //Get UTC time LocalDateTime utcNow = TimeUtils.UTC.now(); //Get the system time zone format string String defaultZoneUTC = TimeUtils.Zone.getDefaultZoneUTC(); Time tool class code import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZoneOffset; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; import java.util.Objects; import java.util.TimeZone; /** * […]

Android P/Q/R/S 9/10/11/12 Multitasking Gesture Animation OverviewInputConsumer Situation – Section 2

Android P/Q/R/S 9/10/11/12 Multitasking Gesture Animation OverviewInputConsumer Situation – Section 2 Hi, multitasking gestures analyze the situation of OtherActivity. This section analyzes the source code and situation analysis of entering multitasking when the desktop itself is the foreground. First, let’s take a look at the two processes of multitasking on the native aosp: Key phenomenon […]

Android InputChannel event sending and receiving system analysis

This article is based on Android12. InputChannel represents the channel through which other processes transmit input events to View through file descriptors. Because cross-process transmission is required and the Parcelable serialization interface is implemented, it is also possible to understand why the InputChannel of the Java layer is initialized with the copyTo() method. The receiver […]

Logistic regression clinical model prediction of dichotomous outcome variables (2)–baseline characteristics and three-line table drawing (1)

This section is about the clinical model prediction of binary outcome variables, which is different from the previous Cox regression, https://lijingxian19961016.blog.csdn.net/article/details/124088364https:// lijingxian19961016.blog.csdn.net/article/details/124088364https://lijingxian19961016.blog.csdn.net/article/details/130053191https://lijingxian19961016.blog.csdn.net/article/ details/130053191 The dichotomous outcome variables are only occurrence and non-occurrence, regardless of covariates such as time. The content of this issue mainly includes the following sections: 1 Introduction 2. Baseline characteristics 3. Single-factor […]

Unix, UTC, GPS timestamps and conversions

UTC time The full English name of UTC time: Universal Time Coordinated, the Chinese name: Coordinated Universal Time. The popular understanding is that this time is common all over the world, that is, a time common to the whole world. It can be considered that Greenwich Mean Time is the time coordination time (GMT=UTC), and […]