#include<stdio.h> #include<string.h> char _stack[205]; int head = -1; int rear; void pop() { head–; } void push(char ch) { _stack[++head] = ch; } char top() { return _stack[head]; } int main() { int n; int i; int j; int cnt; int run; char str[105]; scanf(“%d”,&n); while(n–) { cnt = 0; head = -1; scanf(“%s”,str); for(i=0; […]
zynq SOC entry base (3) EMIO experiment
1.1 comparison introduction of EMIO and MIO zynq SOC entry foundation (2) MIO experimentexplains the use of MIO. In this section, let’s talk about the use of EMIO. In the reality, the GPIO of Zynq made a brief introduction. Zynq’s GPIO (Multiuse I/O) Mio and (Extendable Multiuse I/O) Emio. MIO is assigned directly with BANK0 […]
[C#] The content in the print control and the content in the print window
Effect sign of the effect: Operation steps:1. Create a new WinForm project and create a window 2. Drag the print -related control PageSetupDialog 、 PrintDialog 、 PrintDocument 、PrintPreviewDialog 3. Set the document property of the above control as the corresponding printdocument 4. Set button and other controls and add corresponding buttons 5. The signal […]
Libpng source code use Section 3: Read (continuing 3 upper read interfaces (the main interface used by the user)) PNGSETROWS
The upper read interface (the interface used by the user’s main use) is in front of the configuration interface. libpng source code use Section 3: Read (continued 2) At this point, there are two methods that can be performed: through advanced reading interfaces, or a series of low -level reading operations. If (A) You are […]
Construct a test environment on Linux commonly used commands (from-testing small grapefruit)
1. Build a test environment: 2. View application log: (1)vivi/vim originally refers to modifying the file, and at the same time, you can use the VI log file name to open the log file The(2)lessLESS command is the most commonly used command for logs.usage: LESS log file name -paging display file contentFrequent use of this […]
WeChat Mini Program Customized Single Selection, WeChat single selection and use
Disposal Recommended WeChat official: <View class = ‘Pay_box’> <!-Bread in the outermost-> <radio-found class = “Radio-Group” BindChange = “Radiochange”> <view class = ‘comon_pay’ wx: for = “{{{paywaylist}}” wx:key=”{ {index}}”> <text>{ {item}}</text> <label class=”radio”> <radio value=”{ {item}}” checked=”{ {item.checked}} ” /> </label> </view> <!- <View class = ‘Common_pay’> <text> WeChat Pay </text> <label class = “radio”> […]
javascript Type Judgment Null and UNDEFINEDJS Judgment NULL and UNDEFINED
javascript The main method of determining the data type is mainly: ** Typeof: The principle is to judge by the machine code of the variable instanceof: According to the constructor’sprototypeIs the attribute on the prototype chain of an instance object serial number type result 1 Undefined “undefined” 2 Null “object” 3 Boolean “boolean” 4 […]
Python’s DataFrame Slot Encyclopedia (including multiple indexes) DataFrame slices in Python
code word is not easy, please like it! Intersection Intersection This mainly explains how to slices the DataFrame of Pandas, including a method of taking a certain line, a certain column, a few lines, a few columns, and multiple indexes. • Select line name, list name, value• Select the data with the index of label […]
Summary -Linux Shell determines whether the MySQL database password is empty, whether the proper shell verification MySQL password Benjamin
Last year’s project wrote a small tool to manage the MySQL database with shell, which involves a problem, which is to determine whether the MySQL database password is correct. At that time, I was still troubled by a little. Later, I checked the information and changed myself before I barely met the requirements. Now I […]
MybatisPlus The difference between orRNEW in the conditional constructor
Scenery Project building column: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/column/info/37194 implementation Writing unit test to see the difference /*** *Condition constructor query operation operation of SelectList */ @Teest Public void TestenTiTyMapperselectlist () {) { // Query the database, the gender is male (1), and the name has a record of hegemony or 123 records in email. List <employee> Employeeelist = […]
VMware Workstation and Device/Credential Guard are not compatible solutions LSA bags did not sign as expected
1, disable Windows protector’s proof of protection (insufficient ability, beingMicrosoft documentIn the clouds in the clouds, finally end in failure, and the right to record this right) 00 Use program and function to add virtualized security functions Win + R gpedit.msc Open the strategy management console From the group strategy management console tocomputer configuration->Management template->system->Equipment […]
SQL, Linq, Lambda query statement format
Linq’s writing format is as follows: from temporary variable IN collection objectWhere conditional expression[Order by Conditions]SELECT Temporary Value Value[Group by Condition] Lambda expression writing format is as follows: collection object .Where (temporary variable => (condition expression)) SQL, LINQ, Lambda query sentence examples 1. Query all the records of the Student table Sql: select * from […]
HDU 1695 Mobius Revolution
Give B, D, K, and see 1 ≤ x ≤ b, 1 ≤ y ≤ d, and the number pairs (x, y) of GCD (x, y) = k.((x, y) and (y, x) are regarded as one) Thinking equivalent to meet 1 ≤ x ≤ b/k, 1 ≤ y ≤ d/k, and the number of pairs […]
TENSORFLOW builds handwritten digital image recognition — SoftMax algorithm
TensorFlow Build a handwritten digital image recognition -SoftMAX algorithm, from TensorFlow Chinese community import input_data import tensorflow as tf mnist=input_data.read_data_sets(“MNIST_data/”, one_hot=True) # Add x as a placeholder x=tf.placeholder(“float”, [None, 784]) # two variable definitions W=tf.Variable(tf.zeros([784,10])) b=tf.Variable(tf.zeros([10])) # Forecast algorithm definition y=tf.nn.softmax(tf.matmul(x,W) + b) # Correct results occupy y_=tf.placeholder(“float”, [None,10]) # Definition Calculation Cross Entropy Formula […]
[Solve the problem] Complete the overall migration Johnny from MySQL to SQLite database
Our company’s CTO asked me to maintain the client’s database and issued an order. The Android client’s DB is consistent with Serverdb from the beginning to the end. The original idea of was that I should have what I encountered on the Internet, and I kept searching, including only one article on the English website. […]
ViewPager comprehensively summarized the page content of ViewPager. Guoxuan
Reprinted from:https://blog.csdn.net/weixin_39251617/article/details/79399592 If there is any infringement, the inform will be deleted. 1, Introduction ViewPager, view page turning tool, which provides a multi -page switching effect. A UI control introduced by Android 3.0 is located in the V4 package. The use of low versions requires importing V4 packages, but now the APP we developed is […]
CSP True True Question Solution (Continuous Update) CLOVE
I do not doubt that the last question is only the first two questions of the CSP each time √ teleportation door High school (or junior high school?) Analyze the collection of knowledge, and replace the coordinates of the point on the left side of the direct line.When judging a little, just pay attention. #include<algorithm> […]
MAC implements the RTSP address output by the RTSP server to the RTSP server, the RTSP address is not right Angus
Want to build an RTSP streaming server on your own Mac, and find it to find it. I still think that VLC is the simplest and practical. official website download and install VLC, and the path after installation is:/Applications/VLC.app Practical command Start the server, the command is as follows /Applications/VLC.app/Contents/MacOS/VLC –ttl 12 -vvv –color -I […]
IDEA Create Web Project Detailed Process IntellJ Create a web project
Related software: Intellij IDEA, JDK18, Tomcat Intellij IDEA is installed directly (you can select the installation directory set by yourself as needed), JDK can use 1.6/1.7/1.8, mainly configure the system environment variables. Tomcat’s official website can download the compressed package to decompress. 1. Create a simple web project 1. Create a web project File -> […]
The new label of HTML5 with graphic and text-Figure, Figcaption graph
I wanted to explain two articles in two articlesfigure、figcaption, but these two labels are defined and text, so we can explain it together, and everyone can accept it. Everyone often uses a list of picture lists in XHTML and HTML, pictures+title or picture+title+simple description. Previous conventional writing: <li> <img src=”” /><p>title</P> </li> and in HTML5 […]