Compiling proto and related usage of proto

Compiling proto and related usage of proto 1. Compiling proto Reinstall the protoc ol for reference https://blog.csdn.net/u013498583/article/details/74231058 View the current protocol version: protocol -- version Check the installation location of protocol: which protoc ol Find the file related to the protocol: sudo find / - name protocol ...

Added by Shaped on Thu, 03 Mar 2022 23:57:19 +0200

Qt development experience tips 121-130

QLineEdit can be used for many special processing purposes besides simple text boxes. Restrict input. Only IP addresses can be entered. To limit the input range, it is highly recommended to use QRegExpValidator regular expression for processing. //Limiting input for expression QString str = "\\b(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9] ...

Added by trassalg on Thu, 03 Mar 2022 23:24:05 +0200

6 string, tuple and dictionary

Strings, tuples, and dictionaries 1, String A string is an immutable sequence of several different unicode characters 1 . String creation #Single quote string str1 = 'It's going to rain. My mother wants to get married. Let him go' str2 = str() #Empty string str3 = str([10,20,30]) #Double quoted string str2 = "It's going to rain. My mother ...

Added by James Bond 007 on Thu, 03 Mar 2022 20:32:23 +0200

A project takes you into object-oriented programming: C + + implementation of employee management system

preface object-oriented It is a very common programming idea. Through a practical project, this paper will take you into object-oriented and experience the application of object-oriented in practical development, which brings us convenience. The project of this paper comes from Dark horse programmer An example in a series of courses. Th ...

Added by stuartbates on Thu, 03 Mar 2022 20:06:59 +0200

Algorithm-simulation

Preface: The so-called "simulation algorithm" used in the so-called simulation problems does not have a completely accurate definition. The analog algorithm, as the old saying goes, "Paint the ladle according to the gourd"; The official interpretation is that key elements are filtered and extracted according to the title de ...

Added by The Silent on Thu, 03 Mar 2022 19:06:03 +0200

Introduction to C + + Basics

Introduction to C + + Basics 1. Initial knowledge of C + + 1.1 the first C + + program Writing a C + + program is divided into four steps Create projectcreate a fileWrite codeRun program 1.1.1 create project Visual Studio is the main tool we use to write C + + programs. Let's open it first 1.1.2 creating files Right click the source ...

Added by Chrisj on Thu, 03 Mar 2022 16:13:00 +0200

Chapter 1 basic algorithm

sort Quick sort The core idea of fast platoon is divide and conquer. Choose one as a sentry, so that the number less than or equal to it is on the left and the number greater than or equal to it is on the right The time complexity is n(logn) The steps are roughly divided into the following three steps: Determine the dividing pointAdjust ...

Added by sashi34u on Thu, 03 Mar 2022 15:42:46 +0200

CCF CSP certification 2020-09-2 "risk population screening" problem solving ideas and full score code

Problem description Topic background After the outbreak of an epidemic in a certain place, we want to inform all residents who have recently passed through the high-risk area to participate in nucleic acid testing in accordance with the principle of "testing as much as possible". Problem description In order to find out the re ...

Added by Death_Octimus on Thu, 03 Mar 2022 08:22:13 +0200

Frequently asked questions in C + + interview

This article explains several questions often asked in C + + interview. This article explains the frequently asked questions such as initialization list, inheritance and string through demo. Look at the example below Initialization list //Base class class Base { public: Base() : m_nbase(0), m_nbase2(m_nbase + 100) {} Base(int n) : m_n ...

Added by itsgood on Thu, 03 Mar 2022 06:04:06 +0200

Data structure one to many, tree (end)

Personal blog portal, welcome to visit Tree: Definition: a tree has at most one root node. The terminal of each path is called terminal node, also known as leaf node. A node that is neither a root nor a leaf is called an intermediate node, and the line between the node and the node is called an edge. From bottom to top, it is called height * ...

Added by Ting on Wed, 02 Mar 2022 18:28:10 +0200