C language file operation related functions

Header file: stdio.h #include <stdio.h> File open close function File open (fopen) The FILE opening operation means that a FILE structure area will be allocated to the FILE specified by the user in memory, and the pointer of the structure will be returned to the user program. Later, the user program can use this FILE pointer to ...

Posted by parkie on Thu, 28 Oct 2021 11:37:42 -0700

[big data Java foundation - Java concurrency 14] J.U.C's blocking queue: LinkedBlockingDeque

The previous BlockingQueue is a one-way FIFO queue, while LinkedBlockingDeque is a two-way blocking queue composed of linked lists. A two-way queue means that elements can be inserted and removed from both ends of the header and tail. It also means that LinkedBlockingDeque supports FIFO and FILO operations. LinkedBlockingDeque is an optional c ...

Posted by koenigsbote on Thu, 28 Oct 2021 11:08:38 -0700

New section of PE document

catalogue What values in the PE file will be affected by the new section? To add a new section: Add section manually Code new section If you need to build a shellcode at one end in the PE file (when the remaining space in the default section area is insufficient), you can solve this problem by adding a section. Usually, most shelling soft ...

Posted by mastermike707 on Thu, 28 Oct 2021 05:27:54 -0700

Common operations in string class

1. Basic concept of string container c language style string is too complex and difficult to master, which is not suitable for the development of large programs 2. Common operations of string container string constructor string();//Create an empty string, for example: string str; string(const string &str)//Us ...

Posted by cheeks2k on Thu, 28 Oct 2021 03:05:47 -0700

C Language From Beginning to Soil

Oct. 23. Off-topic topic: Compare three numbers and output. //Enter three different integers and compare sizes to output from large to small #include<stdio.h> int main() { int a,b,c; printf("Enter three different integers:\n"); scanf("%d %d %d",&a,&b,&c); //Three integers int t; if(b>a) //Compare Size ...

Posted by mortal991 on Wed, 27 Oct 2021 09:58:36 -0700

Quick sort notes

Code template: #include <iostream> using namespace std; const int N = 1000010; int q[N]; void quick_sort(int q[], int l, int r) { if (l >= r) return; int i = l - 1, j = r + 1, x = q[l + r >> 1]; while (i < j) { do i ++ ; while (q[i] < x); do j -- ; while (q[j] > x); if (i &lt ...

Posted by RoundPorch on Wed, 27 Oct 2021 09:20:31 -0700

[big data Java foundation - Java concurrency 07] J.U.C's blocking queue: ArrayBlockingQueue

ArrayBlockingQueue, a bounded blocking queue implemented by an array. The queue uses the FIFO principle to sort and add elements. ArrayBlockingQueue is bounded and fixed. Its size is determined by the constructor during construction. It cannot be changed after confirmation. ArrayBlockingQueue supports the optional fair policy of sorting waitin ...

Posted by dcmbrown on Wed, 27 Oct 2021 08:26:28 -0700

How does Python interact with C code in microphoton

1. Python code and C code character association This section describes how Python characters are associated with C characters (such as module name, class name, variable name, function name, etc.) during module expansion? Take the ADC class name symbol as an example to illustrate the following association process: C code character ADC STATI ...

Posted by StormS on Tue, 26 Oct 2021 23:08:14 -0700

First knowledge of C language -- > keyword, #define, pointer, structure

Due to other delays these days, the part about getting to know C language (3) has not been updated (which is also the last part). Today, take time to update the last part of getting to know C language. @[top] [first knowledge of C language (3)] 1. Common keywords ⚠️: 1) Common keywords cannot be created by yourself. 2) Keyword cannot be a ...

Posted by Dada78 on Tue, 26 Oct 2021 08:28:40 -0700

"21 days of good habits" phase I-4

Today's topic: Enter two non-zero integers a and B on the keyboard. If both a and B are even, the sum of the two numbers will be output. If both a and B are odd, the difference between the two numbers will be output. If a is odd, B is even, the product of the two numbers will be output. If a is even, B is odd, and the A/B result will be output ...

Posted by irvieto on Tue, 26 Oct 2021 06:29:42 -0700