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
[note]vue from introduction to entering the grave basic grammar of the second book
vuejs official website
Template grammar
1.1 interpolation
1.1.2 text
Double braces {}} interpret the data as plain text rather than HTML code.
Common usage
<span>Message: {{ msg }}</span>
v-once
By using the v-once instruction, you can also perform one-time interpolation. When the data changes, the content at the interp ...
Posted by pas07920 on Wed, 27 Oct 2021 09:50:50 -0700
[Experiment 2] Array, Pointer and C++ Standard Library
Task 1 (Template Class)
#include <iostream>
using namespace std;
// Definition of Class A
class A{
public:
A(int x0=0, int y0=0): x{x0}, y{y0} {}
void show() const { cout << x << ", " << y << endl; }
private:
int x, y;
};
// Definition of class B
class B{
public:
B(double x0, double y0): x{x0}, y{y0} {}
v ...
Posted by intodesi on Wed, 27 Oct 2021 09:35:50 -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 < ...
Posted by RoundPorch on Wed, 27 Oct 2021 09:20:31 -0700
laravel's mysql split table and split table associated query solution
0X00 problem appears
How does laravel of php implement horizontal sub table? Recently, there was a project in hand. The framework used the laravel7 framework of php. Due to the surge in the amount of data, 300000 rows of data were produced in one night for the details of rapid iterative development, and the main table had 12 million data. Beca ...
Posted by -entropyman on Wed, 27 Oct 2021 09:20:17 -0700
Using stm32cupemx to generate keil project to complete water lamp and serial communication
catalogue
1, Generate keil project using stm32subemx
1.1. Download stm32cupemx
1.2. Create a new project
1.3 initialization configuration
1.4 project export
2, Improvement and Simulation in keil
2.1 improve functions
2.2 simulation waveform
2.3 burning demonstration
3, stm32usart serial communication
3.1 requir ...
Posted by neerav on Wed, 27 Oct 2021 08:54:02 -0700
Java Concurrent Programming JUC: CyclicBarrier thread synchronization
java.util.concurrent.CyclicBarrier provides a synchronization mechanism for multiple threads to wait for each other. It can be understood as an obstacle. All threads that reach the obstacle first will be in a waiting state. All threads can continue to execute until all threads reach the obstacle.
For example, the synchronization mode of Cyc ...
Posted by farkewie on Wed, 27 Oct 2021 08:52:27 -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
redis source code analysis -- 6. Implementation of skip list
skiplist is a very useful data structure, which is also common in interviews. Its efficiency is basically equivalent to that of red black tree, and its coding implementation is much simpler than that of red black tree
1. How to implement a dict by yourself
Unlike C + +, java and other high-level languages with built-in map, C language does ...
Posted by DamienRoche on Wed, 27 Oct 2021 08:20:37 -0700
Application of cookies and sessions
Application of content Cookie and Session
Servlet common objects
ServletConfig: static dataServletContext: shared static data. Share dynamic data. Share file data.HttpServletRequestHttpServletResponseresponse.setContentType("text/html");response.setCharacterEncoding("utf-8");response.sendRedirect("ServlectDengLu");
>>Reply management ...
Posted by pistolfire99 on Wed, 27 Oct 2021 07:46:50 -0700