QT from entry to soil - mouse event
introduction Personally, the event mechanism is the most difficult and subtle part of Qt. There are two main types of events:
Occurs when interacting with a user. For example, press the mouse (mousepress event) and hit the keyboard (keyPressEvent).The system automatically occurs, such as timer event, etc.
When an event occurs (for example, pr ...
Added by mtwildcard on Sun, 16 Jan 2022 00:32:32 +0200
Huawei machine test HJ16: shopping list
Title Description:
Wang Qiang is very happy today. The company gives a year-end bonus of N yuan. Wang Qiang decided to use the year-end bonus for shopping. He divided the items he wanted to buy into two categories: main parts and accessories. Accessories are subordinate to a main part. The following table is an example of some main parts and a ...
Added by erick_w on Sat, 15 Jan 2022 16:55:37 +0200
Object oriented programming -- Application of classes and objects 2
1, Purpose of the experiment:
Master the concept, definition and usage of classes and objects.Master the usage of static data members and const modified member functions.Master the general structure of c + + program.
2, Experiment content:
Modify and complete the following contents on personal current savings account class SavingsAccount:
...
Added by utdfederation on Sat, 15 Jan 2022 13:49:15 +0200
Experiment 3 citation and structure
A. Three number theory size (Reference)
Title Description
Enter three integers, and then output the values in descending order.
Requirements: define a function with no return value. The function parameters are references to three integer parameters, such as int & A, int & B and int & C. The three parameters are sorted by refe ...
Added by soulroll on Sat, 15 Jan 2022 13:02:29 +0200
Operator overloading (Part II)
Overloaded stream insertion operator "<" and stream extraction operator "> >
The C + + compilation system has overloaded < < and > >, which can be used as stream insertion operator and stream extraction operator to input and output C + + standard type data.Data of self-defined types (such as class objects) c ...
Added by pelleas on Sat, 15 Jan 2022 10:50:30 +0200
Divide and conquer thought and examples
The "Divide and Conquer" in the algorithm is to divide a large problem into small problems, break them one by one, and "Divide and Conquer".
The specific operation of divide and conquer algorithm is to divide the original problem into # k # smaller subproblems and solve these # k # subproblems respectively. If the subproble ...
Added by porko2004 on Sat, 15 Jan 2022 10:49:10 +0200
win32 split window of a simple approach, very good programming thinking
In win32, the split bar is used to split a parent window into several sub windows. These sub windows can be resized freely with the drag of the split bar, which can make the program more beautiful. As shown in the following figure: the drawing window is divided into four sub windows by two horizontal and vertical dividing bars. In fact, five st ...
Added by Jon12345 on Sat, 15 Jan 2022 10:12:43 +0200
Phonebook management
1. Preface
In the study of C language, there is often a project to be completed, that is, the management of telephone book. After learning the basic content of playing C language, there is often no way to start in the face of so many project needs. This paper will complete the creation of telephone book step by step. This paper provides an ...
Added by lawnninja on Sat, 15 Jan 2022 09:16:25 +0200
Chapter 19 of TCP/IP network programming
Kernel Objects
definition
Resources created and managed by Windows operating system, including processes, threads, files, semaphores, mutexes, etc.
Different resource management methods are different.
File management, register and update file related data I/O Location, file open mode (read or write), etc.Thread management, register and ...
Added by projectshifter on Sat, 15 Jan 2022 07:49:38 +0200
Container adapter stack,queue and priority_queue
catalogue
I What is a container Adapter
II Stack stack
2.1 introduction to stack
2.2 use of stack
2.3 simulation implementation of stack
III Queue queue
3.1 queue introduction
3.2 use of queue
3.3 simulation implementation of queue
IV priority_queue priority queue
4.1priority_queue introduction
4.2 priority_queue usage
4.3 simulati ...
Added by wiredweb on Sat, 15 Jan 2022 05:23:48 +0200