I have always wanted to learn the source code of the C ++ Open-Source engine. After comparing xapian, lemur, and firtex, I decided to start from xapian and look at lemur later.
Xapian is selected because the xapian code is more readable and closer
# Include # include # include using namespace STD; int main () { for (INT I = 0; I { cout. fill (); cout. width (I + 1); for (Int J = 13-2 * I; j> 0; j --) { cout } cout } return 0; }
The road is long, and the road is far behind others.
# include "string. H " main () { const char * src =" Hello World "; int Len = strlen (SRC ); char * DEST = (char *) malloc (LEN + 1); char * D = DEST; char * s = SRC [len-1]; while (Len --! = 0) { * D ++ = * s --; } * D = 0; printf ("% s",
Traverse a single-chain table once and reverse the linked list.
# Include using namespace std; typedef struct NODE {NODE (int v) {value = v; next = NULL;} int value; NODE * next;} Node; void printList (NODE * head) {cout value next) printList
Click a button on the page to disable it and display the countdown. The default value is 3 seconds, and the code is simple: test count down button
If you are interested, you can implement it by yourself.
Author: Petter Liu
One, single and double quotation marksFirst, both single and double quotes are meant to solve the problem of having spaces in the middle.Because the space is in Linux as a very typical delimiter, such as String1=this is a string, so execution will
The mirror of the binary tree is a two-forked tree with a symmetrical binary tree, such asAfter mirroringis to exchange the left subtree and right subtree pointers for each non-leaf node1: Recursion, if the node is empty, return, otherwise swap left
Tip: You can modify some of the code before running
em implementation inverted triangle replace picture -111cn.net m ONE m two M Three m Four
Tip: You can modify some of the code before running
Very beautiful, more suitable for women a kind of more comfortable website
Beautiful dropdown box
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
For a special day to design a rewind, it is also very interesting, and the use of several time functions, you can simply complete the ASP Web page from a point of time in the memory function, change the parameters of the CDate function to complete
Topic:
Reverse a linked list from position m to N. Do it in-place and in One-pass.
For example:Given 1->2->3->4->5->null, M = 2 and n = 4,
Return 1->4->3->2->5->null.
Note:Given m, n satisfy the following condition:1≤m≤n≤length of the list. Test
Click a button on the page to disable it and display the countdown. This default is 3 seconds, the code is simple: & lt; head & gt; & lt; title & gt; testcountdownbutton & lt;/title & gt; & lt; scriptsrc & quot; http://ajax.aspnetcdn.com/ajax/jquery/
How can an English statement reverse the alphabetic order of each word while the word order remains unchanged? Description of php interview questions:
Example: my name is fanglor = ym eman si orlgnaf
Php interview questions:
The code is as
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.