• std::unique_ Analysis and solution of error reporting using incomplete type in PTR


    Pimpl(pointer to implementation) many students are no strangers, but they have upgraded from the original pointer to the exclusive pointer of C + + 11std::unique_ptrYou will encounter aincomplete typeThis paper analyzes the reasons for the error and shares several solutions~ Problem phenomenon First of all, take an example in traditional C + +PimplExamples of // […]

  • C # event


    C # event Remember, I haven’t written a blog this month. Just mix it up event Event refers to something that can happen. It is a member that enables an object or class to provide notification. For example, you open your mobile phone, click “information”, and then the information window will pop up. The “click” […]

  • JavaScript precompiled and implied global variables


    1. Imply global variables Undeclared variables are called implied global variables. var a = 1; // Variables declared outside the function are called global variables b = 2; // Variables that are not declared outside or inside a function are called implied global variables function fn() { var c = 3; // Variables declared in […]

  • What does serialVersionUID do?


    Sometimes when we write code, if we don’t write a class that needs serializationserialVersionUID, the compiler may prompt usThe serializable class ClassName does not declare a static final serialVersionUID field of type long。 Students who have used the mybatis plus framework should also find that when using reverse code generation, the generated entity classes also […]

  • Angular2 actual combat of the front end: detailed explanation and application of dependency injection


    Dependency injection dependency-injection-in-angular-2 Dependency injection is the biggest feature and selling point of angular. It allows different components in an application to call each other without explicitly establishing an association. However, there are still some problems with dependency injection in angular 1, which is why angular 2 completely reconstructs a dependency injection system. The main […]

  • Go [start]


    Recently, I started to learn go. While learning, I made a note to help myself and others. If there are mistakes, you are welcome to correct them. Thank you very much. install Take binary package as an example Download binary packagewget https://studygolang.com/dl/golang/go1.15.7.linux-amd64.tar.gz Unzip the downloaded binary package to the / usr / local directorytar -C […]

  • Are you confused between function expression and function declaration in JS?


    Author: Dmitri pavlutinTranslator: front end XiaozhiSource: dmitripavlutin Dream, dry goods, wechat search[move to the world]Pay attention to this dish washing wisdom who is still washing dishes in the early morning. This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, materials and my series of articles for the interview of front-line large […]

  • C language – correct use of extern keyword


    Using the keyword extern, you can reference variables or functions defined in another file in one file. The following is a classification description combined with specific examples.   1、 Reference variables in the same file #include int func(); int main() {   func(); //1   printf(“%d”,num); //2   return 0; } int num = 3; […]

  • C + + Basics: C + + judgment


    A function is a set of statements that perform a task together. Every C + + program has at least one function, the main function  main() , All simple programs can define additional functions. You can divide the code into different functions. It’s up to you to divide the code into different functions, but logically, the […]

  • Go study notes


    1、 Go basic grammar 1. Documentation and preparation format create a fileThe extension of the go language source file is. Go be careful:Program name, and program save location cannot be entered in Chinese package main import “fmt” func main(){ fmt.Print(‘Hello Go’) } Code writingEach go source file begins with apackageDeclaration, indicating the package to which […]

  • Dubbo go V3 version go module stepping on the pit


    Introduction:The reason for this problem is that we want to make a change to the module path of Dubbo go and replace the previous github.com/apache/dubbo-go with dubbo.apache.org/dubbo-go/v3. Authors Dong Jianhui, Sheng aofeiSource|Alibaba cloud official account ​ Problem background ​ The problem stems from the fact that we want to make a change to the module […]

  • The. Net core console uses topshelf to join di (service registration)


    The. Net core console uses topshelf to join di (service registration) If the console uses topshelf, please configure it according to the photo package first Nuget package Topshelf Microsoft.Extensions.DependencyInjection Code block //Step 1 (Note: server iserver is the name I use for example, please modify it to your own name) class Program { public async […]