100 cases of classic C language (91-100)
Source of all questions: Rookie tutorial C language classic 100 cases
Attach the previous title: 100 cases of classic C language (81-90)
catalogue
C exercise example 91 C exercise example 92 C exercise example 93 C exercise example 94 C exercise example 95 C exercise example 96 C exercise example 97 C exercise example 98 C exercise example 9 ...
Added by kokomo310 on Mon, 08 Nov 2021 00:52:28 +0200
Implementation and Application of Heap (TOPK Problem and Heap Sorting)
1. Definition of heap
A heap is a special kind of complete binary tree in which the father node must be greater than or equal to its child node (this is called a heap) or the father node must be less than or equal to its child node (this is called a heap).
_The so-called complete binary tree is a kind of binary tree whose nodes are arrang ...
Added by Dragoonus on Sun, 07 Nov 2021 18:44:46 +0200
C language - preliminary notes 1
c getting started 1
Header file include < stdio. H >int main(){}gcc compile-o changed to executable name
c getting started 2
2.1 basic data types: character type, integer type and floating point type
2.1.1 character type. A single character needs to be enclosed in single quotation marks and placeholder% c2.1.2 integer,% d2.1.3 floatin ...
Added by cjdesign on Sat, 06 Nov 2021 16:50:41 +0200
Some ideas about group programming ladder competition - practice set L1-009 N number summation (20 points) and test point 3 can't pass
The requirement of this problem is very simple, that is to find the sum of N numbers. The trouble is that these numbers are given in the form of rational numerator / denominator, and the sum you output must also be in the form of rational numbers.
Input format:
The first line of input gives a positive integer N (≤ 100). The next line gives ...
Added by cheesehead on Sat, 06 Nov 2021 10:11:49 +0200
[C + + beginner level] C&C + + memory management
catalogue
1, C/C + + memory distribution
2, Dynamic memory management in C language
3, C + + memory management mode
4, operator new and operator delete functions
5, Common interview questions
The difference between malloc/free and new/delete:
Memory leak:
How to prevent memory leaks:
1, C/C + + memory distribution ...
Added by tidou on Fri, 05 Nov 2021 01:03:02 +0200
An article is enough to understand where the pointer is sacred
The following article comes from: public_ Numerous_ Open source electronic network Read more technical articles, please scan the code and pay attention
What is a pointer:
Do you really understand? Do you know how computer memory is stored? If you really know what pointers are, you will know how computer memory is stored.
First of all, before ...
Added by gmwebs on Thu, 04 Nov 2021 09:21:02 +0200
Embedded team structure & linked list training
Embedded team structure & linked list training
structural morphology
From basic data type to abstract data type
From the previous knowledge we learned, C language specifies some basic data types, such as int, long, float, char, etc., but these basic data types are insufficient when describing some complex transactions, which leads to the ...
Added by vanderlay on Wed, 03 Nov 2021 21:17:20 +0200
C language -- document (high level Part 28)
File pointer
Definition:
FILE * pointer variable name;
For example:
FILE *fp1,*fp2;
Two pointers to the file are defined at a time
File operation mode
※ text mode
Text mode stores data in files in ASCII code mode. The "text file" in our computer is a typical file stored in text mode.
※ binary mode
Non text data such as ...
Added by Shifty Geezer on Wed, 03 Nov 2021 02:55:57 +0200
2018-2019 ACM-ICPC, Asia Shenyang Regional Contest
Training summary
This week, I chose this set of topics to practice. I feel that this set of topics still has some merits, but what we do can only be said to be in line with the rules. In addition, the speed and accuracy of simple topics have been greatly improved compared with the previous ones. Don't say more. Keep up your efforts.
C Ins ...
Added by MorganM on Mon, 01 Nov 2021 17:32:23 +0200
Data structure notes - queue
1, Type definition of queue
A queue is a linear table that is limited to inserting only at the end of the table and deleting only at the header. The tail of the table is called the rear, the header is called the front, and the table without elements is called an empty queue.
In addition to all the characteristics of linear table, queue has it ...
Added by cybaf on Mon, 01 Nov 2021 05:47:17 +0200