(21) Beep prompt tone and mobile phone vibration

... 本节知识点 蜂鸣提示音plus.device.beep(); 手机振动plus.device.vibrate(); 蜂鸣音音plus.device.beep() switch (plus.os.name ) { //Judge device type Case "iOS": If ( plus.device.model.indexOf("iPhone") >= 0 ) { //Just determine if it is iPhone Plus.device.beep(); Console.log = "Device beeping..."; } else {...


The output format of cout in printf and C++ in C/C++

... 一, Printf output format C The general form of format string is: %[flag][output minimum width][.precision][length ] type, where the items in square brackets [] are optional. The meaning of each item is as follows: 1. Type type characters are used to indicate the type of output data, its...


The same symbols have different meanings in different places - Swift program beginner's FAQ

... same symbol, has different meanings in different places - Swift program beginner's FAQ 在我们When writing a program, you will often use symbols with special meanings, such as colons, exclamation marks, question marks, etc. However, please note that when these symbols are used in different...


Partially ordered sets, Dilworth's theorem, and classic missile interception problems

... 偏序集: 定R is the relationship on non-empty set A, if R is reflexive, antisymmetric, and transitive , then R is the partial order relationship on A, referred to as partial order, usually referred to as ≦. A partial order relationship R between a set A and A is called a partial order set,...


Write your own Chapter1

... background: Processing while the programmable logic device is also developing, you can implement very complex circuits, such as processors, there are many downloadable programmable logic devices The running processor eg: Nios II, OR1200, LeON3, OpenSparc, etc., is called a soft core...


51NOD wangyurzee's tree

... wangyurzee, a good child who loves math with Leo, has n different nodes, numbered from 1 to n. Wangyurzee wants to have n-1 edges between them, making them a tree. However, wangyurzee found that there were too many schemes, so he gave m restrictions. The ith constraint limits the number...


[poj3169 Layout] [Differential Constraint] [Bellman-Ford]

... [Link] [[I] #include<cstdio> #include<math.h> #include<string> #include<vector> #include<algorithm> #include<iostream> using namespace std; const int maxn = 1e5 + 6; const int inf = 0x3f3f3f3f; int d[maxn]; struct node1 { int a,b,c; }k1[maxn]; struct...


01 backpack Constant optimization

... 趁2020肝 The last 20 minutes of the summer self-study out of this blog... Such an obvious 01 backpack naked question (really to use "obvious" to describe it?). The original one-dimensional array code is: #include <iostream> #include <cstring> #include <cstdio> #define...


iOS An HTTPS connection client and server interaction process

... In an HTTPS connection network, after entering the account number and password and clicking the login button, before the server returns this request, what happened during this period? 答: Specifically experienced 8 steps: client package request. This includes URLs, ports, accounts, and...


Greedy Algorithm - Pirates of the Caribbean: Optimal Loading Problem

... Problem Description: One day, the pirates intercepted a cargo ship filled with all kinds of antiques, each piece of antiques is worthless. Breaking it loses its value. Although the pirate ship is big enough, but the weight is C, the weight of each antique is wi, how should pirates put...