C language: L2-006 tree traversal (25 points)

1, Title Given the post order traversal and middle order traversal of a binary tree, please output the sequence of its sequence traversal. It is assumed that the key values are positive integers that are not equal to each other. Input format: The first line of input gives a positive integer N (≤ 30), which is the number of nod ...

Added by scottfossum on Wed, 02 Feb 2022 00:17:05 +0200

Learn about threads

I Thread concept In some cases, multiple control processes need to be executed simultaneously in one process. For example, to realize the download software of a graphical interface, on the one hand, it needs to interact with the user, wait for and process the user's mouse and keyboard events, on the other hand, it needs to download multiple fi ...

Added by pck76 on Tue, 01 Feb 2022 20:21:05 +0200

My first Windows application

First Windows application There are four steps to create a window application: Register window classcreate a windowDisplay windowupdate windows Window class WNDCLASS Window class is not a class in C + +, but can be understood as "category" A window class is a template used to create a window Each window class has a window ...

Added by joel426 on Tue, 01 Feb 2022 17:22:48 +0200

Gstreamer Basic Tutorial 9: media information collection

1.Goal Sometimes you may want to quickly find out which media the file (or URI) contains, or whether you can play all the media. You can build a pipeline, set it up to run, and view bus messages, but GStreamer has a utility to do this for you. This tutorial shows: How to recover information about URI sHow do I determine if a URI is playab ...

Added by btrsrinivasarao on Tue, 01 Feb 2022 15:53:36 +0200

C + + memory partition model

When the C + + program is executed, the memory is divided into four areas; Code area: the binary code that stores the function body and is managed by the operating system Global area: store global variables, static variables and constants Stack area: it is automatically allocated and released by the compiler to store the parameter values an ...

Added by ocpaul20 on Tue, 01 Feb 2022 13:29:22 +0200

[Blue Bridge Cup - single chip microcomputer learning notes] DS1302

1, Introduction to DS1302 1. Function introduction DS1302 includes clock / calendar register and 31 byte (8-bit) data temporary storage register. Data communication is only through one serial input and output port. Real time clock / calendar provides information including seconds, minutes, hours, dates, months and years. Leap year can be adju ...

Added by blizzard on Tue, 01 Feb 2022 10:41:45 +0200

[learning notes] Introduction to the basics of C language - this one is enough!

This article is a summary of the author's notes in the process of learning C language. It will briefly describe the basic knowledge of C language. The content is clear and easy to understand. I believe you can easily learn the basic knowledge of C language. At the same time, I hope this article will help you. I believe you will succeed. Now let ...

Added by alevsky on Tue, 01 Feb 2022 09:59:36 +0200

Introduction to C language (freshman notes) function

Chapter 7 C language functions 7.1 what is a function? concept We encapsulate (package) the commonly used code into an independent module in a fixed format. As long as we know the name of this module, we can reuse it. This module is called Function. Explain the encapsulation of the function and some precautions with the function of comp ...

Added by mullz on Tue, 01 Feb 2022 07:32:28 +0200

Dynamic link library, GOT, PLT

Dynamic link library What is dynamic link library The following is my own understanding, which may not be correct, but it should be roughly the same Long ago, without the concept of library, every time I wrote code, I was building wheels from scratch Later, people found that some functions are common to most programs and have nothing to do w ...

Added by timclaason on Tue, 01 Feb 2022 02:26:18 +0200

Brother Jiang takes you to play with C language | 13 - one level pointer and multi-level pointer

Basic concepts of pointer What is the address Address in life: Memory address: Address and data in memory unit are two completely different concepts The address is like the room number. According to this number, we can find the corresponding roomMemory units are like rooms, which are dedicated to storing data Variable address: The ...

Added by fhil85 on Mon, 31 Jan 2022 23:26:51 +0200