Data structure --- hash structure implemented by c language array

hash address The hash address is a logical address, not an actual address. The hash address is obtained through the hash function hash function The hash function is determined by yourself. You can choose any function. Suppose you use the array to store the hash data, use the subscript to describe the position in the array, and cons ...

Added by morphy on Thu, 17 Feb 2022 05:01:42 +0200

C language learning notes - trigonometric function

  common trigonometric functions are provided in the C language standard library in the header file math You can see the relevant definitions of functions in H. double __cdecl sin(double _X); double __cdecl cos(double _X); double __cdecl tan(double _X); double __cdecl asin(double _X); double __cdecl acos(double _X); double __c ...

Added by kuliksco on Thu, 17 Feb 2022 02:49:24 +0200

Data structure (C language version) -- string, array and generalized table notes

1. String ①. Definition of string String -- a finite sequence composed of zero or more characters. It is a special linear table. Its data element is one character, that is, a linear table with limited content. Substring: A subsequence of any consecutive characters in a string Main string: String containing substring Character pos ...

Added by guzman-el-bueno on Wed, 16 Feb 2022 07:01:56 +0200

Linux driver_ Asynchronous notification

Linux applications usually have three ways to query whether device drivers can be accessed: blocking, non blocking and asynchronous notification. Asynchronous notification: "signal" came into being. The signal is similar to the "interrupt" used in our hardware, but the signal is at the software level. It can be regarded as ...

Added by RCB on Wed, 16 Feb 2022 05:47:00 +0200

Creation, waiting, termination and separation of multithreads

1, Create a new thread 1. Header file: < pthread h> 2. Function: pthread_create(pthread_t *thread,const pyhread_attr_t *attr,void *(start_routine) (void ),void *arg); namesignificancepthread_tEquivalent to unsigned integer length*threadID of the threadconst pyhread_attr_t *attrHalf of the properties of the thread are ignored. By default ...

Added by alanlee79 on Wed, 16 Feb 2022 03:33:44 +0200

c language data structure, you may not know the sequence table

Python wechat ordering applet course video https://edu.csdn.net/course/detail/36074 Python actual combat quantitative transaction financial management system https://edu.csdn.net/course/detail/35475 Data structure sequence table Sequence table definition 1. Preface The sequential storage of linear table is also called sequential table. I ...

Added by dark_destroyer on Wed, 16 Feb 2022 00:21:39 +0200

100 examples of C language topic exercises - topic + topic analysis + source code (71-80)

[Title 71] Title: write a function. When the input n is an even number, call the function to find 1 / 2 + 1 / 4 +... + 1/n. when the input n is an odd number, call the function 1 / 1 + 1 / 3 +... + 1/n (using pointer function). 1. Topic analysis: 2. The source code of the title is as follows: #include "stdio.h" #include "stdlib.h" double even ...

Added by djKale on Tue, 15 Feb 2022 16:25:40 +0200

Share several practical embedded C programs

1. Hexadecimal character to integer number Function: convert hexadecimal string to hexadecimal number. I didn't find the corresponding library function, so I wrote a function manually with reference to the online code. The commonly used functions are ATOI and Atol, which convert decimal digit strings into int or long types, so they are not ap ...

Added by Mark W on Tue, 15 Feb 2022 07:34:59 +0200

Basic operation of C language function

Article catalogue preface 1, What is a function? 2, Function classification and call 1. Nested call of user-defined functions 2. Chain access of user-defined functions 3. Recursive call of user-defined functions (key points) summary preface This paper introduces the basic knowledge of C language functions, including function c ...

Added by Right Wing Liberal on Tue, 15 Feb 2022 07:31:47 +0200

L2-016 may all lovers in the world be brothers and sisters who have been separated for many years (25 points) (C language) (and collection) (dfs) (test point pit)

subject L2-016 wish all lovers in the world are brothers and sisters who have been separated for many years (25 points) ha-ha. We all know that intermarriage is not allowed within five clothes, that is, if the nearest common ancestor of two people is within five generations (i.e. myself, parents, grandparents, great grandparents and high grand ...

Added by Slashscape on Mon, 14 Feb 2022 12:41:37 +0200