2c + +: new, delete exploration, overview of intelligent pointer, shared & PTR Foundation (Reprint)

new, delete new, delete is a keyword, like sizeof. Not a function new and delete do more than malloc and free. #include <iostream> #include <vector> using namespace std; class A { public: A() { cout <<"A structure"<<endl; } ~A() { cout <<"A Destructor of" &lt ...

Posted on Sat, 09 Nov 2019 14:49:29 -0500 by iceman2g

Analog processor scheduling

I. internship content Select a scheduling algorithm to achieve processor scheduling. II. Purpose of practice In a multiprogramming system, there are often several processes in readiness at the same time. When the number of ready processes is greater than the number of processors, it is necessary to determine which processes occupy the processor ...

Posted on Fri, 08 Nov 2019 08:57:25 -0500 by Roble

JAVA Foundation (object operation flow)

1. Objeccoutputstream is an object operation stream This stream can write out an object or read an object into a program, that is, it can perform serialization and deserialization. Serialization is to write (archive) according to the regulations of documents. To deserialize is to read (a file) according to ...

Posted on Fri, 01 Nov 2019 15:06:08 -0400 by Pigmaster

Notes on constructors

Foreword is When a function is created, we don't know whether it is a constructor (constructors are usually capitalized). Only when a function is called with the new keyword can we say it is a constructor. eg: function Person (name, age) { this.name = name; this.age = age; } var per1 = new Person("yuchen", 22); Execution flow of c ...

Posted on Sat, 19 Oct 2019 17:30:16 -0400 by faydra92

PowerShell gets the latest 10 system logs

I recently found out that my program always calls some halal code, so I quit at run time. I want to get the system log to know how my program quits and how I get the latest 10 system logs through PowerShell. Why do I need to get the latest 10 logs, because there may be several other programs that quit w ...

Posted on Mon, 07 Oct 2019 16:39:22 -0400 by dr.maju

Range of values for C++ numeric types

Links to the original text: https://my.oschina.net/u/160145/blog/264404 //Range of values for C++ numeric types #include "stdio.h" #include "iostream" using namespace std; int main() { ...

Posted on Wed, 02 Oct 2019 21:36:20 -0400 by PDXDesigner

OSPF Advanced Configuration

The agreement needed for the experiment Default routing protocol, static routing protocol, RIP protocol, OSPF protocol · Detailed configuration of GNS3 topology 1. Pick up six routers. (Right-click Configure, select Slots to add a port NM-1FE-TX, where R3 needs to add two NM-1FE-TX, click OK)2. Bring out four PCs (VPCS)3. Change R6 icon to ...

Posted on Wed, 02 Oct 2019 11:30:44 -0400 by JustinMs66

Initial Knowledge of Object-Oriented in Python

Initial Knowledge of Object-Oriented in Python 1. Initial knowledge of object-oriented programming (core-object) (1) Observe the following code: # PROCESS-ORIENTED PROGRAMMING s = "alexdsb" count = 0 for i in s: count += 1 print(count) s = [1,2,7,3,4,5,] count = 0 for i in s: count += 1 print(count) # object-oriented programming def m ...

Posted on Mon, 23 Sep 2019 02:48:01 -0400 by tofi84

Discussion on Disruptor's Principle

I talked about using Disruptor in my project before because it was not understood enough to cause previous problems, so I deliberately explored its principles today.<!-- more --> Why use Disruptor Let's start with my service.This service is mainly part of the game logic of the game server, including frame synchronization logic and other b ...

Posted on Fri, 20 Sep 2019 21:14:44 -0400 by fleabel

This time, understand the Promise principle thoroughly

Author's statement I will migrate to the Personal Public Number Front End Q and the Nugget Platform to write articles.Blog Garden articles will no longer be updated and published in time.Welcome to the Public Number "Front End Q" and My Nuggets Home Page: https://juejin.im/user/5874526761ff4b006d4fd9a4/posts   Promise must be one ...

Posted on Sun, 08 Sep 2019 23:41:00 -0400 by sparrrow