Tag:assignment

  • [note] pointer to pointer

    Time:2019-12-8

    // 1.pointer to pointer.cpp #include “stdafx.h” #include int _tmain(int argc, _TCHAR* argv[]) { int n = 0x88; int *pn = NULL; int **ppn = NULL; pn = &n; ppn = &pn; printf(“%X\r\n”, ppn); printf(“%X\r\n”, *ppn); printf(“%X\r\n”, **ppn); system(“pause”); return 0; } 1. assignment   2. Assign value to pointer   3. output  

  • C# operator

    Time:2019-11-26

    Background: Due to the poor foundation of programming, I recently started to consolidate the learning of C foundation. In the later stage, I will summarize my own learning and summarize the corresponding articles. If there is any deficiency, please give me more advice. 1. introduction An operator is a symbol that tells the compiler to […]

  • How much do you know about the go language [data structure]?

    Time:2019-11-16

    Pointer This chapter focuses on the application of string, number, array, slice, map, channel, structure and pointer assignment and function parameter transfer   Character string String itself is the structure of stringheader, including data pointer and string length, as follows type StringHeader struct { Data uintptr Len int } The memory address pointed to by […]

  • C# variable

    Time:2019-11-15

    Background Due to the poor foundation of programming, I recently started to consolidate the learning of C foundation. In the later stage, I will summarize my own learning and summarize the corresponding articles. If there is any deficiency, please give me more advice. Two, introduction Variables: used to store data on a computer Three. Grammar […]

  • C ා assignment operator

    Time:2019-11-12

    =: it means to assign the value to the right of the equal sign to the variable to the left of the equal sign. Expressions connected by equal signs are called assignment expressions. Be careful:For each expression, we can find the value of the variable to the left of the equal sign,Is the value of […]

  • C# constant

    Time:2019-11-9

    I. Introduction 1. Constants can be used as regular variables, but their values cannot be modified after being defined. 2. Constant is a fixed value, which will not be changed during program execution. Constants can be any basic data type, such as integer constants, floating-point constants, string constants or string constants, and enumeration constants. II. […]

  • “Trick” of packing and unpacking

    Time:2019-11-9

    I. stereotype value type and reference type   As we all know, the. Net type system consists ofClasses, structures, enumerations, interfaces, and delegatesForm. According to the way of memory allocation, all types are divided intoValue typeAndreference type。   When it comes to value type, most people will confidently say, “value type is not int, float, double… […]

  • Android WebView supports input file to enable camera / select photos

    Time:2019-11-7

    To activate the input file photographing or file selection function of WebView, you can override the specified method in the webview.setwebchromeclient method to intercept the input event of WebView and do our corresponding operations. Android code webView.setWebChromeClient(new WebChromeClient() { @Override public void onProgressChanged(WebView view, int newProgress) { if (newProgress == 100) { ProgressBar. Setvisibility (view. […]

  • Understanding of disassembly common instructions in vs2013

    Time:2019-10-29

    Recently, I reviewed C language and was interested in disassembly. I’ll explain my understanding with the following figure as an example. If there is any mistake, please give me some advice. First, recognize two common instructions: Lea — > get address assignment — (same type) assignment Secondly, understand DWORD PTR []: DWORD (double word) is […]

  • Uitableview headerview, footerview use snapkit layout to cause constraint exception

    Time:2019-10-29

    Make an app setting page (personal Center) today. It is a list menu with a picture and account title at the top and an exit login button at the bottom. Of course, I thought of uitableview, headerview and footerview at the first time. //I have created two class files to be the header and footer […]

  • Introduction to C Programming — Chapter 5 basic operation and expression of c-part3

    Time:2019-10-16

    5.3  Pick severalIn terms of operators   Besides addition, subtraction, multiplication and division (+ – * /), common operators are as follows:   Note: the following operators are separated by commas. There are also comma operators in C language. The comma operator is not mentioned here. 1. Assignment operator =, + =,*= 2. Unary operator + +,– […]

  • About the “?” in C #?

    Time:2019-10-3

    Catalog 1. Nullable type modifier (T?) 2. Ternary (Operator) Expressions (?:) 3. Empty merge operator (??) 4. NULL check operator (?.) Shanzm-23 August 2019 19:59:46 1. Nullable type modifier (T?) Reference types in strongly typed languages can be null, such as:string str=null;If you define a value type as null, you will report an error. However, […]