Tag:Return value

  • Basic use of VBA · function


    Reading time |0.27 minutes word count |440 characters primary coverage |1. Introduction & background Basic use of VBA · function Author | SCscHero Writing time | 2021/8/18 PM12:43 Article type |Series Degree of completion |Completed motto Every great cause has a trivial beginning. 1、 Introduction & backgroundDegree of completion: 100% a) Dealing with problems Today, […]

  • Linux multi process — using MMAP mapping to copy files


    1、 MMAP shared mapping area 1. Create mapping area function MMAP void *mmap(void *addr,size_t length,int prot,int flags,int fd,off_t offset); Addr , pass null Length: length of transmission mapping area prot  PROT_ Read readable PROT_ Write , writable flags MAP_ Shared; The modification of memory will affect the source file (the source file is the file […]

  • Android Bluetooth


    Bluetooth Bluetooth is a short-range wireless communication technology standard. Bluetooth protocol Bluetooth protocol is divided into four layers: core substitution layer, cable substitution protocol layer, telephone control protocol layer and other adopted protocol layers. The most important of these four is the core protocol layer. Bluetooth protocol includes baseband, link management, logical link control and […]

  • Mybatis source code – execution process of executor


    preface It has been known in the mybatis source code sqlsession acquisition article,MybatisGet inSqlSessionThe actuator is created whenExecutorAnd stored inSqlSessionThroughSqlSessionThe dynamic proxy object of the mapping interface can be obtained. The generation of dynamic proxy object can refer to mybatis source code – loading mapping file and dynamic proxy, which can be summarized in the […]

  • Personal summary of new features that may be used in php5-7 combined with documents


    PHP 5-7: 1. Improved performance – phpng code is incorporated in php7, which is twice as fast as PHP5 – to be expanded2. Reduce memory consumption – php7 uses less resources after optimization – to be expanded //Php7 uses the new Zend engine 3.0 to improve application performance twice as much as PHP5.0 6 reduces […]

  • Array 1


    Definition of array An array is an ordered collection of data of the same type Array describes several data of the same type, which are arranged and combined in a certain order. Among them, each data is called an array element, and each array element can access them through a subscript. Subscripts start at 0. […]

  • Common types of typescript (Part 1)


    The official documents of typescript have long been updated, but the Chinese documents I can find are still in the older version. Therefore, some newly added and revised chapters are translated and sorted out. This translation is compiled from “typescript Handbook”Everyday Types“Chapter. This article is not translated strictly according to the original text, and some […]

  • New string section 22: ES6


    1. Template string 1.1. String processing of Es5 The string template output of Es5 usually uses + splicing. Such shortcomings are obviously easy to see: when the string splicing content is too much, it is too chaotic and prone to error. let name = “wuwei”; let age = 18; Let STR = “his name is […]

  • Study day 13


    C language Basic concepts of functions A main function and several other functions form a C program Functions can call each other Declare before function call void shengmingdehansu();// This is the declaration of the function { Printf (“this declared function is printed / 0”); } Int main() // this is the main function, the beginning […]

  • How to use async and await?


    Async and await are new syntax introduced by ES7, which can facilitate asynchronous operation Async keyword is used on the function (the return value of async function is promise instance object) Await must be used with async. example: //Get data 1 getDatas1() { return new Promise((resolve, reject) => { this.$http .get(window.SITE_CONFIG.apiURL + “/static/queryStatic”, { params: […]

  • Interface composition update


    Interface composition update overview Composition of interface constant public static final Abstract method public abstract Default method (Java 8) Abstract method (Java 8) Private method (Java 9) Default method in interface Upgrade the interface //Define an interface with two abstract methods public interface MyInterface{ void show1(); void show2(); } //Define two implementation classes of the […]

  • Problem solving 5 C + + interview questions phase I (including problem solving ideas, answer analysis and implementation code)


    This article presents five C / C + + interview questions, with answers, problem-solving ideas and expanded knowledge. 1. Find the return value of the following function #include <stdio.h> int func(int x) { int iCnt = 0; while(x) { iCnt++; x = x&(x-1); } return iCnt; } int main() { printf(“cnt = %d\n”, func(9999)); return […]