This tool is called astyle.
URL: Artistic Style 2.02
The document is very good. If it is indented, it will be subdivided into every aspect.
Why is this tool recommended? Because the traditional indent is unable to meet the requirements of C ++
I. Basic statements1. const int r = 100; // standard const variable declaration and initialization, because the default internal connection must be initialized, its scope is this file, after passing the type check, the compiler replaces it with 100
///
/// The URL Formatting Function urlx must include http ://
///
/// input a single URL
///
/// Enter the URL of the page to get the value
///
///
Public String formaturl (string urlx, string objurl)
{
Uri baseuri = new uri (objurl); //
Author: Zhu Jincan
Source: http://blog.csdn.net/clever101/
Some netizens sent me a message saying that there were a bunch of inexplicable errors in the test program for compiling an MTL library using devcpp.
Devcpp I have heard of and used it
Speaking of memory management, it must be related to heap memory. We know that automatic variables are implemented by stacks, while heap memory is controlled and managed by programmers.
When we have such a piece of code:
Void * P = new type name
Like other languages, C # also needs to directly perform operations on the registry to achieve file association, that is, set the file extension, document type description, friendly name, icon, call method, and other key values according to rules,
C Standard library functions include a series of date and time processing functions, which are described in the header file. These functions are listed below. Three types are defined in the header file: time_t, struct TM, and clock_t.
C language
Struct is composed of several members. There are two types of layout:
1. Sequential: sequential layout, such
Struct S1 {
Int;
Int B ;}
By default, A is first arranged in the memory, and then B is arranged. That is, if the address of a and the
Author: Chu YunfengSource: SkynetResponsible editor: FangzhouProblem: memory usage
Someone wrote a function to convert integers into strings:
Char * ITOA (int n) { char retbuf [20]; sprintf (retbuf, "% d", N ); return retbuf; }
If I call this
The template commissioned by egg pain is tangled every time you see it.
# Pragma onceclass delegate_listener {public: void test (void *) {MessageBox (0, _ T ("egg template delegate"), _ T ("delegate "), mb_iconinformation | mb_ OK) ;}};
Public inheritance
Protected protection inheritance
Private private inheritance
We know that the private and protected members of the class cannot be used outside the class. Only public members can be used outside the class.
When the primary class
As a result of the project requirements, You need to draw a tree chart and search for it on the Internet, and find that there are few materials in this area. No way, you can do it yourself. The following is a simple implementation of a layer-3
1. attribute is always used to replace accessible data members.2. readonly and const are preferred.3. The as operator is preferred between AS and forced type conversion.4. Use the conditional attribute (conditional attributes) to replace the
26. Implement icomparable and icomparer interfaces for objects to be sorted27. Avoid using the icloneable Interface28. Avoid using the type conversion Operator29. The new operator is required only when the base class has the same name as the
Using system; using system. collections. generic; using system. componentmodel; using system. data; using system. drawing; using system. text; using system. windows. forms; using system. runtime. interopservices; using system. windows. forms.
I used to write a small program with VB.net. I feel that my namespace is really good to use. Now I am studying C #, and it is always troublesome to access application settings. Later, I found the method to use my namespace in C # On msdn. As follows
Link addresses in other modes:Click Open Link
I. Overview
Responsibility Chain Mode:
So that multiple objects have the opportunity to process the request, so as to avoid coupling between the request sender and the receiver. Connect these objects
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