PTA group programming ladder competition (L1-041~L1-050)

L1-041 search 250 (10 points) The other party doesn't want to talk to you and throws a string of numbers at you... And you must find the touching number "250" in this string of numbers. Input format: The input gives an unknown number of integers with an absolute value of no more than 1000 in oUTF-8...

Posted by _will on Sun, 03 Oct 2021 01:30:14 +0530

[advanced C language] from getting started to getting into the ground (string and memory function Chapter 2)

preface: This chapter continues to introduce the use and precautions of library functions dealing with characters and strings, so that we can better use string and string library functions to understand the use of some library functions or custom functions. It's the National Day holiday. AlthouUTF-8...

Posted by Alphamonkey on Sun, 03 Oct 2021 05:38:02 +0530

30 day self-made operating system - day 23 window operation

Window and input switching Let's switch the window with the keyboard, press F11 key to move the bottom window to the top. Here, the code of F11 key is 0x57. bootpack.c excerpt: void HariMain(void) { (slightly) for (;;) { ((omitted) if (fifo32_status(&fifo) == 0) { ((omitted) } else { ((omitted)UTF-8...

Posted by kingcobra96 on Sun, 03 Oct 2021 06:08:22 +0530

STM32F072RB Implementation Notes - Use of LCD 1602

STM32F072RB analog board does not have a monitor. If you can add one, it is much easier to monitor the status of the program while you are experimenting. So I will try it with the LCD 1602 at hand. Here is the whole process. LCD1602 specification data LCD1602 is a very common material, with theUTF-8...

Posted by bkanmani on Sun, 03 Oct 2021 21:59:12 +0530

Dynamic memory function + classic written test questions @ dynamic memory management -- malloc +free + calloc + realloc

🔑 Citation: why is there dynamic memory allocation? The memory development methods we have mastered include: int a = 0;//4byte int arr[10] = { 0 };//40byte Such an approach - The size of development space is fixed. If you want to be big, you can't be big, and if you want to be small, you can'UTF-8...

Posted by hyeteck on Mon, 04 Oct 2021 00:28:05 +0530

Implementation of double linked list (C language) -- data structure

The linked list can be said to be the most basic part of the data structure. It is divided into single linked list and double linked list. The difference between them is that the single linked list structure has only one node to point to the elements behind it, while the double linked list hasUTF-8...

Posted by python_q on Mon, 04 Oct 2021 05:00:33 +0530

Advanced C language: file operation

catalogue What is a file file name file type file buffer field name pointer Opening and closing of files Sequential reading and writing of files Random reading and writing of files Determination of end of document What is a file Files on disk are files But in programming, we generally talk abouUTF-8...

Posted by PupChow on Tue, 05 Oct 2021 01:03:25 +0530

LCD1602 driver (51 single chip microcomputer)

LCD1602 introduction: It is a dot matrix LCD module that can only display letters, numbers and symbols. One line can display 16 characters and two lines, so it is called 1602. Picture: Hardware analysis: 1602 has 16 pins in total, and the functions of each pin are as follows According to the fuUTF-8...

Posted by rd321 on Tue, 05 Oct 2021 03:35:02 +0530

Bidirectional linked list C language version of data structure

Bidirectional linked list C language version of data structure Data structure is used to store data. There are many kinds of data structures. This article is a two-way linked list, which is implemented in C language. learn It is useless to copy and paste the source code directly when learning tUTF-8...

Posted by Santonian on Tue, 05 Oct 2021 23:24:07 +0530

Porting little VGL (lvgl) V8 dry goods tutorial 1 to STM32 and running it

Porting little VGL (lvgl) V8 dry goods tutorial 1 to STM32 and running it preface: This article is my previous tutorial“ Porting little VGL (lvgl) dry goods tutorial 1 to stm32 chip ”The introduction tutorial of LVGL V8 version of is applicable to the V8 version of LVGL. Because there is a largUTF-8...

Posted by kristolklp on Wed, 06 Oct 2021 02:25:26 +0530