Small broadcasting algorithm based on STM32C8T6 voice digital
Article catalog
preface: 1, What is pandas?2, Use steps
1. Import and storage2. Read in datasummary
preface Because of my Bi sheshi supermarket cashier system, I learned a digital voice broadcasting module in December. Based on the needs of Bi sheshi, I will write a small digital voice broadcasting algorithm. If there are defi ...
Added by Ryoku on Mon, 24 Jan 2022 04:15:15 +0200
[C language] Pointer advanced fourth station, parameter transmission of array / pointer
Friends, here we are!
Pointer advanced fourth station ๐๏ผ Parameter transmission problem
0. Cited examples
The type of formal parameter in the user-defined function should correspond to the actual parameter type passed in the function call
In the study of elementary C language, we know that parameters can be divided into two types ...
Added by dunhamcd on Mon, 24 Jan 2022 02:17:21 +0200
Winter camp: Mathematics
A - A^B Mod C
Give three positive integers a, B, C and find A^B Mod C.
For example, 3 5 8, 3^5 Mod 8 = 3.
Input
Three positive integers a, B, C, separated by spaces. (1 <= A,B,C <= 10^9)
Output
Output calculation results
Sample Input
3 5 8
Sample Output
3
#include<stdio.h>
#include<math.h>
int main ()
...
Added by iriedodge on Sun, 23 Jan 2022 05:59:28 +0200
C language rehabilitation record II: TCP/IP protocol cluster
TCP/IP protocol cluster
When network programming, we will inevitably encounter the problem of communication protocol The full name of TCP/IP protocol cluster is called transmission control protocol/Internet protocol, that is, transmission control protocol and Ethernet interconnection protocol. All network protocols are in this protocol cluster ...
Added by XTTX on Sun, 23 Jan 2022 03:57:54 +0200
A Wei, come in and do the written test of C language array. I heard you are very brave
๐ Author: Foxny
๐ Update record: July 8, 2021
โ Corrigendum record: None
๐ This article states: due to the limited level of the author, it is inevitable that there are errors and inaccuracies in this article. I also want to know these errors. I sincerely hope the readers can criticize and correct them!
๐ Example:
๐ ...
Added by timcclayton on Sun, 23 Jan 2022 01:24:50 +0200
[PAT (Basic Level) Practice] - [Two Pointers] 1035 insert and merge
I. [Topic difficulty]
Class B
II. [Title No.]
1035 insertion and merging (25 points)
III. [Title Description]
According to the definition of Wikipedia: Insertion sorting is an iterative algorithm, which obtains the input data one by one and gradually produces an orderly output sequence. In each iteration, the algorithm takes an element ...
Added by Jona on Sat, 22 Jan 2022 16:51:22 +0200
1040: output absolute value
1040: output absolute value
time limit: 1000 ms Memory limit: 65536 KB
[Title Description]
Enter a floating-point number and output the absolute value of the floating-point number to two decimal places.
[input]
Enter a floating point number whose absolute value does not exceed 10000.
[output]
Output the absolute value of this floati ...
Added by regiemon on Sat, 22 Jan 2022 11:45:06 +0200
C Language Learning 4--Functions
Place palindromes in an array.
Definition and use of functions
Define your own function
//Determine if i is a prime number
int isprime(int i){
int ret=1;
int k;
for(k=2;k<i;k++){
if(i%k==0){
ret=0;
break;
}
}
return ret;
}
call
if(isprime(i)){
}
#include<stdio.h>
//Summation
void sum(int begin,int end) {
in ...
Added by eddiegster on Sat, 22 Jan 2022 08:07:56 +0200
[C language] advanced pointer
1. Character pointer
What is the output of the following code?
Answer: h hello the hello the
Analysis: character pointer variables can store strings.
The first h is because the * ps pointer points to the first character h of hello, so h is output; The last two array names, arr and ps, are the first character address of hello, so the ...
Added by legacyblade on Sat, 22 Jan 2022 07:59:21 +0200
Pointer exercises
catalogue
First question
Second question
Question 3
Question 4
Question 5
Question 6
Question 7
Question 8
ย
First question
int main()
{
int a[5] = { 1, 2, 3, 4, 5 };
int *ptr = (int *)(&a + 1);
printf( "%d,%d", *(a + 1), *(ptr - 1));
return 0;
}
A is the address of the first element of the array, so * (a + 1) is the second ...
Added by alvinphp on Sat, 22 Jan 2022 03:55:43 +0200