Linux C/C + + learning 3: the role of extern "C"
1. Overview of extern "C"
The main function of extern "C" is to implement other C codes in C++ code. The format is as follows: cplusplus is the default macro defined by the C + + compiler, and the code block part is the C language implementation code. Extern "C" instructs the compiler to compile this part of ...
Posted by kbaker on Wed, 24 Nov 2021 07:59:53 -0800
Sliding window question set 1
1 sliding window
priority_queue is often used
0480 sliding window median
1 topic
https://leetcode-cn.com/problems/sliding-window-median/
2 problem solving ideas
1 use a multiset to maintain the current window,
1.1 do not use priority_ The element cannot be deleted because of the queue1.2 the reason why map/set is not used cannot contai ...
Posted by teongkia on Wed, 17 Nov 2021 23:36:42 -0800
Student management system
Project introduction: When the project was a freshman year, the cpp course design assignment. At that time, the understanding of cpp was weak, and the grasp of the framework of the large project was not very good, so there may be many irregularities or errors in the code. The purpose of uploading is to give some code ideas to students who need ...
Posted by mhenke on Sat, 04 Sep 2021 21:30:49 -0700