C Language: Implementation of Sequential Table

Title C Language Implementation Order Table Definition of Linear Table A linear table is a finite sequence of n data elements with the same characteristics. Linear table is a data structure that is widely used in practice. Common linear tables are order table, chain table, stack, queue, string A linear table is logically a linear structure, ...

Posted by kye on Fri, 05 Nov 2021 17:24:02 +0100

Function Stack Frame Details

Preface Acceptance said today Function Stack Frame Details (1) To talk specifically about things inside the MyAdd() function. Sample Code int MyAdd(int a, int b) { int c = 0 c = a + b; return c; } int main() { int x = 0xA; int y = 0xB; int z = 0; z = MyAdd(x, y); printf("z = %d\n", z); return 0; } Today's assembly language int ...

Posted by Tryfan on Fri, 05 Nov 2021 17:02:22 +0100

Algorithm note 11: printing patterns

1. Print diamond pattern     * * * * * * * * * #include <stdio.h> int main() { int n = 0; //Multi group input while (scanf("%d",&n)!=EOF) { //Print top half //Number of control rows for (int i = 0; i < n; i++) { //Print one line //Print ...

Posted by nalleyp23 on Thu, 04 Nov 2021 17:25:20 +0100

On C + + object model

Member variables and member functions are stored separately, which means that member functions do not strictly belong to classes. The structure in C language only stores variables. It is necessary to declare and define the implementation function outside the structure. C + + abstracts the idea of class and encapsulates member variables and memb ...

Posted by cauri on Thu, 04 Nov 2021 15:31:43 +0100

Detailed explanation of Fibonacci sequence

        catalogue         1. Know Fibonacci sequence                 one point one   What is the Fibonacci sequence         one point two   The law of Fibonacci sequence         2. Realize Fibonacci sequence with code thinking ...

Posted by ikscovski on Tue, 02 Nov 2021 22:14:43 +0100

Pointer notes (see teacher Hao Bin's course)

Pointer_ one 1, Basic concept of pointer Computer memory is addressed in the smallest unit of bytes. 1. The address is the number of the memory unit. 2. The pointer is the address, and the address is the pointer. 3. Pointer variables are variables that store addresses (that is, pointers). Pointer and pointer variable are two different conc ...

Posted by ace21 on Tue, 02 Nov 2021 18:39:06 +0100

[algorithm learning] sword finger Offer II 042. Number of recent requests (Java / C / C + + / Python / go / trust)

Thank you very much for reading this article~ Welcome[ 👍 [like][ ⭐ Collection][ 📝 [comments]~ It's not hard to give up, but it must be cool to insist~ I hope all of us can make a little progress every day~ This paper consists of The white hat of the second leader https://le-yi.blog.csdn.net/ Blog originality~ Sword finger Offer II ...

Posted by omegared on Tue, 02 Nov 2021 16:02:57 +0100

C language learning notes - first sight pointer

Function of pointer 1. Used as a parameter when large data needs to be passed in 2. Operate on the array after passing in the array 3. Function returns more than one result 4. You need a function to modify more than one variable 5. Dynamic request memory ... Operator &* Take address operator &: scanf("%d",&i) ; Inside& ...

Posted by tmharrison on Tue, 02 Nov 2021 14:42:51 +0100

Detailed explanation of heap sorting

1, What is a pile? Heap is actually a binary tree implemented by array. It uses the structure of complete binary tree to maintain a set of data. This makes the time complexity of each group of related operations between O(1)~O(logN), which is quite advantageous. So what is a complete binary tree? Let's look at this group of pictures: I ...

Posted by dakey on Tue, 02 Nov 2021 12:48:23 +0100

C + + Basics (advanced tutorial / STL) -- Based on Java && C Basics

Advanced tutorial 1. Files and streams data typedescribeofstreamThis data type represents the output file stream, which is used to create a file and write information to the file.ifstreamThis data type represents an input file stream for reading information from a file.fstreamThis data type usually represents a file stream and has both ofstre ...

Posted by dhimok on Tue, 02 Nov 2021 10:27:10 +0100