Added: The data table is the general operation.Find: A query that is generally related to multiple tables.Modify: Also the data in the database table to be modified.Delete: Queries involving multiple tables, and finally the data in the deleted tables.In summary, all the actual data is stored in the database table. The
1. What are the types of reference data? Test analysis.Answer: There are two kinds.the first kind, Java provides us with good classes, such as the scanner class, the random class, etc., these existing classes contain a lot of methods and properties that we can use.Second, we create our own classes, according to the definition of the class, you can include multiple methods and properties in the class for us to use.2. The definition format of the classF
the head can not use vector The reason for this is that there is a limit to capacity size and time to expansion(6) (4) and (5) is the adapter , not the container, because it is a re-encapsulation of the container(7) the underlying data structure of the priority_queue is generally vector as the underlying container, heap heap for processing rules to manage the underlying container implementation (8)set underlying
1 short circuit with , when the left is false, do not execute to the right;Short Circuit or | |, when its left is true, does not execute to the right.2 int a=1;if (a++==2) {A = 7;}System.out.println (a);The output is 2, because when + + is on the right side of a, the first to determine whether a is equal to 2, and then add 1, when + + on the left of a, the first to add 1, and then determine whether equal to 23 referencing the scanner data type format:
and:
Select sum (Sal+ifnull (comm,0 from EMP;
To count all employees ' average salary:
Select avg from EMP, or Select sum (SAL) / Count from EMP;6.3 Max and Min
Check the maximum wage and minimum wage:
Select Max (SAL),min from EMP;7 Group queries When grouping queries are required, you need to use the GROUP BY clause, such as querying the payroll for each department.7.1 Group Queries
Query the department number of each department and the salary of ea
Summary and review of data structure coding//about the establishment and hierarchy of binary trees, other basic operations such as traversal (recursive, non-recursive) seeking depth # include ///Hierarchy Traversal idea//from the root each time the team out of an element, will be this element of the Leftchild, Rightchild queue until the team will not be able to queue their last all outData structure (
Team Leviki Encyclopedia:queues , also known as queue, are linear tables that are FIFO, first-in-first-out. In a specific application, it is usually implemented with a linked list or an array. Queues allow insertions only on the back end (known as rear) and delete operations on the front end (known as front).The queue operates like a stack, except that the queue only allows new data to be added at the backend.Sequential storage of queues:Typically co
idea of Hill sort is: First, divide the table to be sorted into several "special" characters, such as l[i,i+d,i+2d,..., I+KD], and make the direct insertion sort respectively;Then take the second step d2Because of the good local order, the final result can be obtained quickly.Performance Analysis:Space efficiency: Use only a constant number of auxiliary units, space complexity of 0 (1)Time efficiency: Because the time complexity of the hill sort depends on the function of the increment sequence
) (*do) (T); If the right son does not exist, direct output else {Stack_push (S, T); If the right son exists, put it back on the stack tag[s->size-1]++; and accumulate the corresponding tag} T = t->right; Return to the right son. Note that if the right son does notexists, the while continuation loop will be triggered}//Otherwise it will be decided to meet the new element to jump out of the loop and continue outside the large while loop}}} Two fork tree determined by two traversal se
First, the data type:The type of data in JS type can be understood as the tag type in CSS, such as: inline, block, inline-block, table;Different data types mean that different calculations can be performed, such as number types, which can be subtraction, modulo, self-increasing, self-reducing, etc.And the string type can seek its length, namely string.length; (No
= [' Rain ', ' Sir ']A2 = Dict (Enumerate (A1))Print (A2)b, the basic characteristicsN1.fromkeys ()--------------------------------------------------used to create a new dictionaryIf there is a Staticmethod word on the top of a method then this is called with a class, as usual we usually use objects to invoke the methodExample:N1 = Dict.fromkeys ([' K1 ', ' K2 ', ' K3 '],[])Print (N1)n1["K1"].append (' BBB ')Print (N1)Output Result:{' K1 ': [], ' K2 ': [], ' K3 ': []}{' K1 ': [' BBB '], ' K2 ':
For Java basic data types, I'm really interested in reference data types, and here I'm mostly talking about application data types.The recommended two URLs for Java basic data types are:1.http://blog.sina.com.cn/s/blog_745b874b0101jqqv.html2.http://www.w3cschool.cc/java/java-basic-datatypes.htmlReference
key is discarded; usage is almost the same as get (str), just one more size parameter;Getline (cin, String), which reads an entire line at a time, and is of type string;GetChar (CH), accepts a character.The role of 1.2 puts (str) is to output a string (a sequence of characters ending with ' \ s ') to the terminal.1.3 strcat (strdest, strsource) is the address of a character array strsource that is returned after the string strdest is concatenated to the string strdest.1.4 strcpy (strdest, strso
tree(1) First Order traversal:The root node-the first sequence traversal of the left subtree-is the first step to traverse the right sub-tree.void Preordertraversal (Bintree BT)/* First Order Traversal */{if (BT) {printf ("%d", bt->data); Preordertraversal (bt->left); Preordertraversal (Bt->right); }}(2) Middle sequence traversal:Traversing the left sub-tree in the middle sequence--"root node"--traversing right subtree in sequencevoid Inordertraver
var Commentschema = { Data:{type:objectid, ref: ' Data '},//data data table, where data ID from:{type:objectid is stored, ref: ' User '},/ /USER User table, save user ID replay:[ {from : {type:objectid, ref: ' User '}, to : {type:objectid,
Data Structure tutorial (Java description) edited by Xu xiaokai-review abstract 04
Chapter 3 stack and queue
Stack sequential storage structure and operation implementation
Public class sequencestack implements stack {final int maxsize = 10; // assume that the initial length of the one-dimensional array of the storage stack is 10 private object [] stackarray; // define the storage Stack Array reference priv
; } //assign E to S.elem[top], and top plus 1s.elem[s.top++] =e; returnOK;}//Out Stack functionStatus Pop (sqstack s,elemtype e) {if(S.top = =0) { returnERROR; } s.top--; E=S.elem[s.top]; returnOK;}//take the top element of the stackStatus GetTop (Sqstack s, Elemtype e) {if(S.top = =0) { returnERROR; } e= s.elem[s.top-1];}//Empty StackStatus Clear (Sqstack S) {inti; Elemtype e; for(i = s.top; i >0; i--) {pop (S, e); printf ("%d\n", E); }}//determine if the stack is emptyStat
, projecting the shape on the spherical surface onto the cylinder, and then expanding the cylinder, which is a world map drawn by the standard parallels for the "Mercator projection" of zero (that is, the equator). Refer to http://blog.csdn.net/mygisforum/article/details/13295223
This projection method ensures that the meridians and parallels are parallel and perpendicular to each other, are they familiar? However, the greater the deformation of this projection method to the polar ar
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.