C Language Array and Pointer Summary (Part I)
C Language Array and Pointer Summary (Part I)
1. Similarities:
a+n <=> (unsigned int) a+n * sizoeof (* a) If A is an array, a+n refers to the address of the nth element
p+n <=> (unsigned int) p+n * sizoeof (* p) If P points to an array, p+n points to the address of the nth element
p[n] <=> *(p+n) <=> ...
Posted by mika79 on Thu, 16 May 2019 15:08:48 -0700
Chapter III Experiments
The purpose and requirements of the experiment
1. Familiar with the definition format of classes and the access rights of members in classes.
2. Timing and sequence of calling constructors and destructors.
3. To grasp the definition of the object and the timing and method of its initialization.
Experimental content
1. The f ...
Posted by paruby on Thu, 16 May 2019 14:33:20 -0700
Synchronization of Operating System
Synchronization of Operating System
1. Four processes P1,P2,P3,P4 are generated by fork. Each process prints out its own name, such as P1 outputs "I am the process P1". Require P1 to execute first, P2 and P3 mutually exclusive, P4 to execute finally. Verify that the implementation is correct through multiple tests ...
Posted by filmixt on Mon, 22 Apr 2019 16:45:36 -0700
MySQL Table Partitioning Details 2
First, what is database partitioning
Some time ago I wrote an article about it. mysql sub table In this article, let's talk about what database partition is. Take mysql as an example. The data in mysql database is stored on disk in the form of files. By default, it is placed under / mysql/data (which can be viewed by datadir in my.cnf). A ta ...
Posted by ecljc on Fri, 29 Mar 2019 11:57:28 -0700
mysql partition function and examples
First, what is database partitioning
Some time ago I wrote an article about it. mysql sub table In this article, let's talk about what database partition is. Take mysql as an example. The data in mysql database is stored on disk in the form of files. By default, it is placed under / mysql/data (which can be viewed by datadir in my.cnf). A tabl ...
Posted by sidney on Fri, 29 Mar 2019 01:15:28 -0700
Codeforces Round (Div. 2) 839B. Game of the Rows (Thinking + Greed)
Written after newbee was 3:0 by Li Kui.
Turn off live broadcasting, change a place, just a, maybe I don't want too many irrelevant things.
I think it's hard to tell the truth. If I don't see the data on cf, it may be a long time before I can get a.
My idea is to divide each regiment into three groups, four people in a group, two people in a ...
Posted by wyred on Wed, 13 Feb 2019 03:21:18 -0800
The difference between stl::map and boost::unorder_map
The map in stl is implemented based on the red-black tree, and when insert elements, the operator < is used to compare the elements and find the location where the elements can be inserted, so the final traversal results are orderly.
Unorder_map in boost is based on hash value to compare elements. Some elements may have the same hash value b ...
Posted by Jordi_E on Tue, 12 Feb 2019 14:12:17 -0800
Serialized form is json object, data grid submits a query with additional parameters, background uses Spring data JPA to realize conditional paging query
Many query conditions can be set in the query window
The query condition required for the load method of converting the input from the form to the DataGrid raises a new query to the original request address again and displays the results in the datagrid.
Code Annotations for Conversion Approaches
<td colspan="2"><a id="searchBtn" href ...
Posted by keveen on Fri, 11 Jan 2019 11:06:10 -0800
python 3 stack development-object-oriented binding method (the difference between classmethod and static method), polymorphism, encapsulated property
I. Object-Oriented Binding Method
I. Functions defined in a class are divided into two main categories
1. Binding method (who is bound to, who calls it, automatically passes it in as the first parameter):
1. Methods bound to classes: methods decorated with classmethod decorators.
Customize classes
Classes are automatically passed in as the ...
Posted by zsxdcfv21 on Thu, 10 Jan 2019 01:18:13 -0800