Differences between definition and declaration:
(1) define the allocated memory, and declare No
(2) The definition can only appear once, but the Declaration can appear multiple times.
(3) extern char a [] is equivalent to extern char a [100],
ArticleDirectory
5. Extra articles-View registered customers
We are no stranger to mentioning events. events allow interactions between classes. It is based on delegation. With the prior understanding of delegation, I believe it will
Exception types derived from exception should be serializable, because only in this way can the exception object be in cross-applicationProgramDomain.
Code highlighting produced by Actipro CodeHighlighter
Generic is like a template, which often defines some commonAlgorithmTo replace the data type with the actual data type during the call.CodeIs reusable.
I. general 1. Simple Example
Take the generic list in the most common FCL as an
CLR cannot inherit multiple base classes, but can inherit multiple interfaces. Any instance that can use a named interface can use an instance of the interface type. Interfaces provide uniform names for a group of method signatures, but do not
Today we will discuss the callback functions in C/C ++.
Before understanding the "callback function", we should first discuss the concept of function pointers.
Function pointer
(1) concept: A pointer is a variable used to point to a memory
Next, we will talk about the trees in the data structure. The most important thing to understand is the binary tree, the balanced binary tree, and the red-black tree. We will discuss these trees today.
Binary sorting tree
Concept: the binary
String and stringbuilder
The string is immutable. In fact, after the two strings are connected, a new string is generated. Therefore, when a large number of strings are used, the performance is reduced.
Stringbuilder can efficiently
Keep quiet read CLR via C # (02)-primitive type, reference type, Value Type 1, primitive type
The data types directly supported by the compiler are called primitive types. Such as int and string. There is a direct ing between the primitive type and
Mutable
(1) mutable means "variable, variable", which is the opposite of const in C ++.
(2) In C ++, mutable is also set to break through the const restrictions. Variables modified by mutable will always be in a mutable state, even in a const
• Extension method can be used to expand existing class functions so that instances of this type have more methods (functions ).
• The extension method only looks like a type method, but in essence it is not. It is more like a static method of the
Principle of encapsulating objects
Inheritance
Polymorphism
Interface
Encapsulation is to hide the internal members and implementations of the class.
Benefits
Good encapsulation can reduce Coupling
Class internal
I
String usage
Character@Indicates that the subsequent string is"Verbatim string"(Verbatim string).
@It can only be used for string constants.
1.Used for file path
The following is a reference clip:String s_filepath = "C:
InProgramAnd put the icons and image resources in a library file for ease of use. Refer to Microsoft's guidance to summarize the creation and use processes as follows.1. Create a resource file1. Prepare all resources (icons, images, and put them in
1. CLS (Common Language Specification) Public language specification CLS is defined in ECMA (European Computer Manufacturers Association-European Computer Manufacturers Association) standards. CLS includes language interoperability rules, that is,
Http://msdn.microsoft.com/library/default.asp? Url =/library/en-US/vccore/html/vcgrfwhereisclasswizardinvisualcnet. aspIn previous versions of Visual C ++, classwizard and wizardbar helped you develop your MFC application. classwizard and wizardbar
Comparison of the three UDP Communication implementation methods in C ++ builder from the findheart blogComparison of Three UDP Communication implementation methods under the keyword C ++ BuilderSource This article mainly discusses data
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