The original copyright of this article belongs to Liu yongfa. for reprinting, please mark the original author to show respect!
Turn: http://www.cnblogs.com/KissFly/archive/2010/11/23/1885254.html
Namespace yongfa365.validator {using system;
Today I learned the C # loop Statement, which is actually the same as the C language. At first I may not know when to use the while or for statement. I can basically understand it after several times, pay attention to the differences between
The intersection between the midline and the plane of a three-dimensional space is calculated using the vector calculation method, which is easy to understand. The OpenGL version I have referred to is straightforward.
Last pointCodeFor reference
Use assert macroDefinition# Include Void assert (INT expression );FunctionWhen expression is false, it prints an error message to stderr and calls abort To stop the program running.Note:The disadvantage of assert is that frequent calls will greatly
1. namespace
C # A program uses a namespace for organization. A namespace can be used as an internal organizational system of a program, it can also be used as an organizational system that is exposed to the outside (that is, a method that exposes
ADO. NET is an object-oriented class library used to interact with data sources. Generally, the data source is a database, but it can also be a text file, an Excel table or an XML file.
Ado. Net supports two data access models: the connectionless
1. Only n digits must be retained.
Float F = 0.55555f;Int I = (INT) (F * 100 );F = (float) (I * 1.0)/100;
2. Keep n digits and round them
Decimal d = decimal. Round (decimal. parse ("0.55555"), 2 );
3. Keep n digits and round them
Math. Round (0.5555
First, use folders and databases
Recently, I have done a lot about this feature. With the rapid development of the network, network access to images is no longer a myth, but it has become a fashion. If you are using Asp.net for development, more
"^" Is an exclusive OR operator in C #. It can be understood as an exclusive operation.
The calculation rules are as follows:
Bytes --------------------------------------------------------------------------------------------------
True ^ false
Define multiple listboxes to implement mutual drag, such as listbox1 and listbox2. Set allowdrop = true and
This. listbox2.dragdrop + = new system. Windows. Forms. drageventhandler (this. listbox#dragdrop );This. listbox2.mousedown + = new system.
If the code is device. drawprimitives (primitivetype. linestrip,), the execution result is: it draws the vertex as a line. At least two vertices are required. If the code is device. drawprimitives (primitivetype. pointlist,), the result is that the
Every blog now requires a summary. However, if I start talking about the previous article directly, the first time I read my blog, I don't know what I'm talking about, so I should move the first section of the previous blog as a summary.
Anyone who
Http://www.csharpwin.com/csharpspace/9314r9141.shtml dynamically creates an object in the previous section, we first understand reflection, then use reflection to view the type information, learn how to create a custom feature, and use reflection to
There are several special variables in shell scripts, which sometimes play a major role. Let's repeat them tonight and make a small summary.
These special variables are:
$ @ All variables are treated as a string$ * Each is an independent string.$ #
Scope
1. namespaces)
In. in the CC file, it is recommended that you use an Unnamed namespaces (Unnamed namespaces). Note: An untitled namespace is just like an untitled class and seems to be rarely introduced: -(). When using a namespace, its name
Warning (level 2) The cs0114 method overwrites the inherited method of the same name. to overload the method, use the override modifier. Otherwise, use the new modifier.Error cs0115 unable to find the appropriate method for reloadError cs0116
8 standard library
The STL standard template library is used in different products to varying degrees. Some basic rules and suggestions are listed here for reference by various teams.
Rule 8.1 avoid using auto_ptr
Note: STD: auto_ptr In the STL
Introduction:
The purpose of the memory pool design is to ensure that the server runs efficiently for a long period of time. by effectively managing objects that are frequently applied for because of a small application space, the memory
A Class A has the func1 method. Sometimes we want this func1 to be called only in a specific class B. The following is an implementation method:Template
Class friendaccess
...{
Friend typename t; // error if write class keyword instead of typename
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