On the menu system of grades
#In the main function, input a set of (10) C language scores into the array score [], and output as shown in the figure
The main menu shown in the figure is called according to different selections
The corresponding functions are realized by writing functions:
(1) Output average score;
(2) Rank and output the scores;
(3) Output scores lower t ...
Posted by Rabea on Mon, 23 Dec 2019 06:29:00 -0800
Operation and test of single linked list (C language)
Operation and test of single linked list (C language)
"Single linklist. H" header file
1. Create a single chain table of leading nodes (insert from header)
2. Create a single chain table of leading nodes (insert from the end of the table)
3. Find the length of the table
4. Search element nodes by sequence number
5. ...
Posted by rehfeld on Sat, 21 Dec 2019 08:55:37 -0800
How does LoadRunner use scripts to judge whether things pass or fail
Things are often used in the performance test of loadrunner. To judge the server performance through things, how can we know that things are passed?
The functions of things passing and failing are as follows:
lr_end_transaction("thing", LR_PASS); //adopt
lr_end_transaction("thing", LR_FAIL); //fail
lr_end_transaction("thing ...
Posted by Submerged on Wed, 18 Dec 2019 08:14:47 -0800
Using X64 assembly language to write high performance SM3 hash algorithm code
Description of C language style operators used in this paper:
=Assignment
==Equal to
< less than
< = less than or equal to
~Reverse by position
&Bitwise AND
^Bitwise XOR
|Bitwise OR
< cycle left
>>>Cycle right
4.1 initial value There's nothing to say about this. Just copy the standard documents:
7380166f 4914b2 ...
Posted by nEmoGrinder on Tue, 17 Dec 2019 20:08:40 -0800
Common macro collations in Linux kernel s
Basic knowledge of 0x00 macros
// object-like
#define Macro Name Replace List Line Break
//function-like
#define Macro Name ([Identifier List]) Replaces List Line Break
The replacement list and the identifier list are both lists after tokenizing the string.The difference is that the identifier list is used as a separator between different param ...
Posted by darkerstar on Mon, 16 Dec 2019 18:33:46 -0800
C language code implementation of Josephus ring problem algorithm
One description of Joseph's problem is: n people numbered 1, 2,... N sit in a clockwise circle, each holding a password (positive integer). At the beginning, select a positive integer as the upper limit value m of the number reported. The number is reported from the first person in a clockwise direction starting from 1, and stops when the numbe ...
Posted by 8mycsh on Fri, 13 Dec 2019 08:40:32 -0800
iOS GDataXML--DOM parsing XML
Use framework GDataXML-HTML Parsing XML
1). First import the framework file, and then Command+B compile
Figure 1.png
resolvent:
I. click project, and the following interface appears
Figure 2.png
Select Build Settings, enter Header Search Paths under Build Settings to search, as shown in the following figure, click Al ...
Posted by cfgcjm on Wed, 11 Dec 2019 08:11:38 -0800
How do function pointers in C work?
I've recently had some experience with function pointers in C.
So, continuing with the tradition of answering your own questions, I decided to make some basic summaries for those who need to learn the topic quickly.
#1 building
Another good use of function pointers: Easy to switch versions
When you need different functions at dif ...
Posted by funkyres on Tue, 10 Dec 2019 22:05:16 -0800
Implementation of strStr()c by leetcodex++
Implement strStr()
Given a haystack string and a needle string, find the first place (starting from 0) where the needle string appears in the haystack string. If not, returns - 1.
Example 1:
Input: haystack = "hello", needle = "ll"
Output: 2
Example 2:
Input: haystack = "aaaaa", needle = "bb ...
Posted by sandeep251088 on Tue, 10 Dec 2019 19:15:37 -0800
Storage and degree calculation of adjacency matrix of DS graph graph
Title Description
Suppose the graph is stored by adjacency matrix. Input the vertex information and edge information of the graph, complete the setting of adjacency matrix, calculate the in degree, out degree and degree of each vertex, and output the isolated points in the graph (the vertices with degree 0)
--Procedural requ ...
Posted by smurl on Mon, 09 Dec 2019 14:40:02 -0800