Enumerations are used instead of static constants, and the advantage is that the range of values can be determined, while constants cannot be defined;Constant notation:1 Const intType_1 =0;2 Const inttype_2 =1;3 Const intType_3 =2;4 5 Const intone =0
Lua is an embedded language that executes in C through a LUA library, and Lua communicates with C through a virtual stack.C's API:Operation Stack function1/* push-in stack function lua_psuhtype*/2void Lua_pushnil (Lua_state *L); 3void
I am bored with writing, and of course some descriptions are not very accurate. After all, a sentence cannot express too much meaning.
Delegate: Pass the method as a parameter.
Generic: Type parameterization used in classes and methods.
The array capacity is fixed. You can only get or set the value of one element at a time. The arraylist or list capacity can be automatically expanded, modified, deleted, or inserted as needed.Arrays can have multiple dimensions, while arraylist or
tag: Io Ar data cti sp on C Ad new Protected void btnquery_click (Object sender, eventargs e) {using (sqlconnection con = new sqlconnection (configurationmanager. connectionstrings ["connectionstring"]. connectionstring) {using (sqlcommand cmd = con.
KMP algorithm C # simple implementation
Recently I have been studying the data structure and implemented the KMP algorithm in C.
Static void main (string [] ARGs){
Char [] source = {'B', 'B', 'C', '', 'A', 'B', 'C', 'D ', 'A', 'B', 'A', 'B', 'C', 'C'
C # The dynamic creation type at runtime. Here, the C # source code is dynamically generated, and then the dynamic creation type is implemented by compiling the compiler into an assembly.
Public static Assembly newassembly () {// create a compiler
Some convenient algorithms added in c ++ 11C ++ 11 has added some convenient algorithms. These new algorithms make our code more concise and convenient. Here, we only list some common new algorithms, three algorithms all_of, any_of, and none_of are
Comparison Between Reference and Pointer in C ++
We already know that in C ++, object variables directly store object values. This is different from Java. in Java, object variables store an address that points to the actual storage of object values.
ZOJ-3811 Untrusted Patrol DFS 2014 Mudanjiang Network Competition C
N points, m bidirectional edges, and k sensors. One sensor records the time sequence of the first arrival and determines whether all vertices can be checked.
First Judge l, l
LeetCode-Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
Each number in C may only be used once in the combination.
Note:
All
Interaction between Lua and C ++ (detailed)
Accidentally click the title again? Sorry ~
I have read my previous blog, and I have made too much nonsense to read it. Well, try to write it concise in the future.
This article does not involve lua
LeetCode-Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than
LeetCode-Combination Sum
Title: https://oj.leetcode.com/problems/combination-sum/
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.
The same repeated number may be
The Himalayas (ZOJ)
/* The 2014 ACM-ICPC Asia Mudanjiang Regional First Round-The Himalayas
--------------------------------------------------------------------------------
Time Limit: 2 Seconds Memory Limit: 65536 KB
--------------------------------
LeetCode-Binary Tree Inorder Traversal
Given a binary tree, return the inorder traversal of its nodes 'values.
For example:Given binary tree{1,#,2,3},
1 2 / 3
Return[1,3,2].
Note: Recursive solution is trivial, cocould you do
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service