C + + basic notes

Differences between C and C + + C + + functions defined in struct and union are called member functions, and data defined in class are called data members C + + introduces three keywords of access rights: public, protected, privatePublic: indicates that data members or member functions are publicProtected: indicates that the data is protected. ...

Posted on Mon, 20 Jan 2020 07:23:43 -0500 by j007w

Detailed installation and configuration of Jetbrains CLion

# Hi Today, I would like to recommend a powerful and intelligent C/C++ language editor.ta's name is - Jetbrains CLion (Uh, no headlines needed) This editor mainly supports C and C++, including modern C++ standards, lib c++ and Boost. CLion always knows your code and takes care of routines while paying attention to important issues. Identify you ...

Posted on Sat, 18 Jan 2020 22:59:18 -0500 by shashiku

[002.13.01] Introduction to the concept of input subsystem

The input subsystem is composed of three parts, which embodies the idea of separation and layering. They are: Core layer Event processing layer Device driver layer Core layer: this part is mainly implemented by input.c, which provides a unified interface for event processing layer and device driver layer. Here we list several important func ...

Posted on Thu, 16 Jan 2020 22:10:58 -0500 by Desbrina

Open source project SMSS Development Guide -- thread pool based on libevent

Libevent is a set of lightweight network library, which is based on event driven development. It can realize multi-threaded multiplexing and register event response. This article introduces the basic functions of libevent and how to develop a thread pool with libevent. 1, Use guide Listen for service and register connection events Libevent is a ...

Posted on Sat, 11 Jan 2020 03:11:24 -0500 by tendrousbeastie

C + + induction and learning -- code specification (continuous update)

C + + induction and learning -- code specification (continuous update) 1, Header file specification In the header file, you will generally define macros, import / export functions, declarations, global variables, etc. at the end of the design, you will classify them and demonstrate the code (please give me more tips if you think about it): #if ...

Posted on Wed, 08 Jan 2020 11:12:20 -0500 by Ivan_

JZOJ 3470. Shortest path

470. The shortest path (Standard IO) Time Limits: 1000 ms  Memory Limits: 262144 KB  Detailed Limits   Description Given a digraph with n points and m edges and k marked points, it is required to pass through all marked points in any order from the specified starting point to the specified end point, and ask what is the shortest dist ...

Posted on Tue, 07 Jan 2020 00:30:44 -0500 by DoddsAntS

BZOJ2118: the equality of ink and ink (the shortest path number theory)

meaning of the title Mo Mo is suddenly interested in the equation. He is studying a1x1+a2y2 + +anxn=B has the condition of nonnegative integer solution. He asks you to write a program, given the value range of N, {an}, and B, to find out how many B can make the equation have nonnegative integer solution. Sol maya immortal question, I fee ...

Posted on Mon, 06 Jan 2020 23:19:27 -0500 by sirTemplar

Learning experience of C + + -- two ways of initializing data member value by constructor

Learning experience of C + + -- two ways of initializing data member value by constructor When writing an application, we want their variables to be the specified initial values. In addition, when I need to define the same class but different objects, I can set other initial values.   #include <iostream> using namespace std; class CBox ...

Posted on Mon, 06 Jan 2020 19:03:13 -0500 by alfieshooter

Codechef table game

meaning of the title Title Link It's hard to generalize.. Sol (since the game is not over yet, the following may be "unofficial" and "positive solution") I have been working on maya for A week. It's A bit too much for CC to give two questions about table making in A challenge.. First of all, consider how to fight viole ...

Posted on Mon, 06 Jan 2020 09:07:18 -0500 by TGLMan

Huawei written test: implementation of four C + + string operations

Title: realization of four operations of string There are four operation expressions represented by strings, which require the correct value of the expression to be calculated. Four operations are as follows: addition, subtraction, multiplication and division "+ - * /", in addition, the number in the expression can only be 1 digit (va ...

Posted on Mon, 06 Jan 2020 07:59:26 -0500 by cool-palace-ceo