[beginner to Daniel Road 10] port management of switch background management
10 port management of switch background management
Project requirements
Switch
Port:
1) Port name2) Port status3) IP address of the port4) Port typeWANLAN
Project realization
1. Add menu frame
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
FILE *file;
void init(void) {
//Open file
file = fopen("users.t ...
Posted by rklapwijk on Wed, 25 Dec 2019 05:24:39 -0800
Agc016d - XOR replace (graph theory IQ)
meaning of the title
Title Link
Give two arrays $a, b with a length of $n $$
You can replace one of $a $with the sum of all of $xor $at a time.
If $a $array can be converted to $b $array, output the minimum number of operations
Otherwise output $- 1$
Sol
Generally, if you see this kind of $N \leqslant 10^5 $and can't do it, you must find the co ...
Posted by yddib on Tue, 24 Dec 2019 13:09:01 -0800
HDU4352 XHXJ's LIS(LIS pressure)
meaning of the title
Title Link
Sol
At the beginning, the idea is that $f[i][j] $represents to the $I $bit, and LIS length is $j $.
However, the discovery can not be transferred at all unless the previous state is known and then dp again..
It is quite violent to press the monotone stack in the process of LIS as a state..
I really don't have lon ...
Posted by billiondevil on Tue, 24 Dec 2019 10:44:52 -0800
Agc027d - modulo matrix (structured black and white)
meaning of the title
Title Link
Construct a matrix of $n * n $, and require any two adjacent numbers $a,b $, so that $max (a,b)% min (a,b) \ not = 0$
Sol
My thoughts:
If $mod = 1 $, you can put 23 4 5 $\ dots $in the first row, and the same is true for the first column
For any position $I $, a number that must meet the requirements is a [I - 1] ...
Posted by Jackomo0815 on Mon, 23 Dec 2019 08:47:58 -0800
Fantastic ideas of [vijos]lxhgww (long chain split)
meaning of the title
Title Link
Sol
Long chain partition
It's also a kind of violence optimized by various fancy techniques
Its main idea is: for each node, the deepest child node is regarded as the heavy son, and the edge between them is regarded as the heavy edge
It's going to have some very good light weight
The sum of all chain lengths is ...
Posted by bljepp69 on Mon, 23 Dec 2019 08:04:19 -0800
Qt - using ajax to get the post data of ashx interface
Because the current C + + project needs to use ajax library to post to call the ashx interface, the interface address is as follows:
The parameters to be passed are as follows:
Then it is found that qml is better to call ajax.js library, so this chapter uses C + + interface to get qml method to call ashx interface (take a C + + interfac ...
Posted by ldoozer on Mon, 23 Dec 2019 06:17:28 -0800
c + + - polymorphic learning
Introduction to polymorphism
Polymorphic basis
New object-oriented
Polymorphism solution provided by C + + compiler
There are three conditions for polymorphism meaning and its establishment
Theoretical basis of polymorphism
Multiple interview questions reinforcement
Understanding of polymorphism
How to realize polymorphism in C + + compile ...
Posted by ken72 on Sun, 22 Dec 2019 06:58:41 -0800
c+++ Inherited Learning
Basic concepts of inheritance
Inheritance and Derivation
Inheritance concept
Comprehensive Training of Access Control of Derived Classes (Inherit Three Ways, Class Three Access Control, Three Look Principles)
Constructions and Destructions in Inheritance
Type Compatibility Principle
Constructions and Destructions in Inheritance
Processing me ...
Posted by garrywinkler on Sat, 21 Dec 2019 17:03:31 -0800
51Nod-1006 longest common subsequence Lcs
Title Link
Description
Given two strings A B, find the longest common subsequence of A and B (subsequence does not need to be continuous).
For example, two strings are:
abcicba
abdkscab
ab is the subsequence of two strings, so is abc, and so is abca, in which abca is the longest subsequence of these two strings.
Input
...
Posted by marketboy on Sat, 21 Dec 2019 09:16:53 -0800
bind function of UDP sender in c/c + + network programming
bind function of UDP sender in network programming
The effect of calling bind function on the sender of upd: assign socket to a specific port. If bind is not called, the kernel will randomly assign a port.
The purpose of the upd sender calling the bind function: if there are two senders and the receiver needs to identify which sender is co ...
Posted by andym01480 on Mon, 16 Dec 2019 08:06:36 -0800