QT from entry to penetration (V) -- QThread

introduction The previous articles have made a simple summary of C + + threads, talking about multithreading in C++11 (III) - only their own powerful blog Garden (cnblogs.com). This paper focuses on the summary and implementation of Qt multithreading. Much like C++11, Qt uses QThread to manage threads. A QThread object manages a thread. There ...

Posted by SpiderSprog on Sat, 15 Jan 2022 10:25:40 +0100

[C + + from bronze to king] Chapter 18: polymorphism of C + +

Catalogue of series articles preface It should be noted that the code and explanation in this section are in the x86 program under vs2013, and the pointers involved are 4bytes. If you want to use other platforms, some codes need to be changed. For example, if it is an x64 program, you need to consider the problem that the pointer is ...

Posted by xstevey_bx on Sat, 15 Jan 2022 07:44:01 +0100

Implementation of C + + queue pointer

This article introduces the implementation of queues through linked lists and pointers. catalogue 1, Logical structure: 2, Overview: 3, Related operations: 1. Copy constructor: 2. Destructor: 3. = heavy load: 4. Air judgment: 5. Header node data: 6. Join the team: 7. Departure: 8. Print queue data: 1, Logical structure: We use th ...

Posted by wittanthony on Sat, 15 Jan 2022 07:09:17 +0100

Operator overloading (Part I)

Operator overloading What is an overloaded operator Not only functions but also operators can be overloaded. For example, "<" is a displacement operator (shift left) in C + + bit operation, but it is also a stream insertion operator used with stream object cout in output operation, "> >" is also a displacement op ...

Posted by DEVILofDARKNESS on Sat, 15 Jan 2022 06:36:50 +0100

QT common controls from getting started to embedding - menu bar and dialog box

introduction QMainWindow is a class that provides users with main window programs, including a menu bar, multiple tool bars, multiple dock widgets, a status bar and a central widget. It is the basis of many applications, such as text editor, picture editor, etc. (this chapter mainly introduces the menu bar and toolbar) ** 1, Menu bar ** A ...

Posted by sulen on Sat, 15 Jan 2022 05:24:47 +0100

Sword finger OFFER brush notes Kaze-1

Data structure: linked list, queue, stack JZ24 reverse linked list Niuke network link Difficulty: simple /* struct ListNode { int val; struct ListNode *next; ListNode(int x) : val(x), next(NULL) { } };*/ class Solution { public: ListNode* ReverseList(ListNode* pHead) { //The initialization part (initialization pointer p,pr ...

Posted by icaro on Sat, 15 Jan 2022 02:39:43 +0100

C + + -------------- > on the eighth day, C + + keywords, exception handling, conversion functions, smart pointers

1 c + + keyword 1.1 explicit keyword Function: used to modify the constructor in the class to prevent implicit type conversion of single parameter constructor (convert basic data type to class type) Features: 1. It can only modify the constructor in the class 2 explicit keyword is only valid for the constructor of one parameter. If the constr ...

Posted by btfans on Sat, 15 Jan 2022 01:24:43 +0100

[concurrency 1] multiprocessor programming: from getting started to giving up

This is bilibili - [End] 2020 Nanjing University "operating system: design and implementation" (Jiang Yanyan) Course notes for Summary of this lecture: What is concurrency, why concurrency is needed, and a new understanding of concurrent programming Abandon the atomicity, sequence and visibility of the program Concurrency an ...

Posted by amal.barman on Sat, 15 Jan 2022 00:25:49 +0100

[C + +] operator overloading, friend - class and object practice - Implementation of date class

1. Preface Preliminary knowledge for reading this article: Constructor, copy construct, copy constructClass access qualifierClass instantiationthis pointer Reference return catalog: Operator overloading Friend function, friend class, inner classDate class After we quickly get started with C + +, the first thing to bear the brunt is to lear ...

Posted by GreyBoy on Fri, 14 Jan 2022 20:31:40 +0100

[C + + design mode] singleton mode

1. What is singleton mode? Singleton mode is an object creation mode. Using singleton mode can ensure that only unique instance objects are generated for a class. That is, there is only one instance object of this class in the whole program space.     Note the following: A singleton class can only be instantiated by one objec ...

Posted by jennatar77 on Fri, 14 Jan 2022 13:43:11 +0100