C language callback function details and examples

1. What is a callback function? Callback function, just listen to the name is higher than ordinary functions. What is a callback function? I'm sorry I haven't read much. I haven't seen the definition of callback function in any book. I searched Baidu and found that there are different opinions. A large part of them use a similar scene to explai ...

Posted by werkkrew on Mon, 06 Dec 2021 12:51:50 -0800

Classic examples of C language 1-5

Starting from today, five classic examples of C language will be updated every day, which is suitable for friends who are learning C language or just finished learning C language and want to lay a solid foundation. Each example is equipped with analysis and review of basic knowledge. Novice authors hope that families will pay attention to and p ...

Posted by wiggly81 on Sun, 05 Dec 2021 14:02:56 -0800

[data structure] binary tree (C language)

  This paper briefly introduces the concept of tree. The more important are the implementation of heap, heap sorting, TOP-K problem, traversal of binary tree (pre, middle, post order and sequence traversal) and the implementation of binary tree function catalogue 1, Concept and structure of tree 1.1 concept of tree 1.2 representation o ...

Posted by mantona on Sun, 05 Dec 2021 12:59:40 -0800

Deep study of C language 2. Pointer

catalogue How to put it? I think if you don't write this thing again, you may be busy in the future. Moreover, the pointer is also an important part of the C language. Besides, many students will be tossed by the pointer. Can't we help each other? 1, Some simple analysis of the pointer   1, Function of pointer 1. Processing complex ...

Posted by richinsc on Sun, 05 Dec 2021 03:56:20 -0800

C + + enhancements to C

Header file name In the new style of C + +, the expanded name of header file is cancelled object-oriented C language is a process oriented programming language. The core of process oriented programming is: function decomposition, top-down, layer by layer decomposition and layer by layer refinement. Program = data structure + algorith ...

Posted by fleabay on Sun, 05 Dec 2021 02:33:23 -0800

Queue - simple operation of chain queue and sequential queue

Queue learning notes – chain team and sequence team 1. Queue (circular queue) In the sequential storage structure of the queue, in addition to using a group of storage units with continuous addresses to store the elements from the queue head to the queue tail in turn, it is also necessary to attach two integer variable front and rear to ...

Posted by dragin33 on Sat, 04 Dec 2021 18:46:25 -0800

Introduction to ACM [read in and output optimization]

This article is mainly a summary based on oiwiki, and will do a series of related articles in the future. If you want to continue reading, you can follow the column. The purpose of this column is to lay a foundation for my recent systematic. So I want to write a column for beginners who like ACM. Why read in and output optimization In f ...

Posted by ugriffin on Sat, 04 Dec 2021 18:18:09 -0800

Common string function implementation! Have your own "library"!

​   Common string function implementation! Have your own "library"! Reviewing a few commonly used strings, I think of a more interesting way to review them, which is to write these commonly used string functions by myself. Although it's common for big guys, it's a happy feeling for me to see my.h file included by #include. Today ...

Posted by thaven on Fri, 03 Dec 2021 09:35:15 -0800

Detailed explanation of common Redis commands and C/C + + calling Redis interface

1, Redis common commands Redis is generally installed on linux, which is divided into server and client. Start Redis server Enter the following command on the terminal to start the Redis server: $redis-server Start Redis client Enter the following command on the terminal to start Redis client: #If the password is set, use the follow ...

Posted by NikLP on Fri, 03 Dec 2021 00:12:24 -0800

[C language final course design] - supermarket management system (open source)

catalogue 1, Description 2, Function realization 3, Screenshot of operation results         1. System main interface         2. Create inventory information         3. Show all information         4. Shopping cart         5. Settleme ...

Posted by kingcobra96 on Thu, 02 Dec 2021 22:54:06 -0800