Fast sorting (C #)
CodeImplementation:
Public static void quicksort (INT [] A, int startindex, int endindex) { If (startindex> endindex) return; int keyindex = partion (A, startindex, endindex); quicksort (A, startindex, keyindex-1 );
1. Download and install reflector.
2. decompilation StorageSource codePackage, download the package reflector.filedisassembler.zip, decompress the package and obtain some files. The reflector. filedisassembler. dll is compiled, and the others are
C ++ function address
Luo Weifeng 2010-3-18
The original Article is published to the QQ space and is now transferred.
Most of the time, we need to get the address of a function, which is the same in C ++, as shown below.
Void F1 () {}
In C ++, you can specify the default value for the parameter. When the function call does not specify the real parameter corresponding to the form parameter, the default parameter is automatically used.
Syntax and usage of default parameters:(1)
2008/3/18 :54 |Metric data: 5105| One person is added to favorites, and one person is promoted. I want to push a video. |5 comments|ArticleClassification:. Net Tool website push Tool|Zookeeper
I only use C #, And the 80% VB. NET program cannot be
1. datetime numeric typeSystem. datetime currenttime = new system. datetime ();1.1 take the current year, month, day, hour, minute, secondCurrenttime = system. datetime. now;1.2 get current yearInt year = currenttime. Year;1.3 take the current
C ++ is a traditional and ancientProgramming LanguageThere are many dangerous traps. If you don't pay attention to them, it will waste a lot of time and energy to modify and debug.
In order to speed up programming, I think it is necessary to
C # communication with C ++ struct socket (13:44:46)Reprinted tags: miscellaneous categories:. netC # communication with C ++ struct socketRecently, when I was using C # as a project, when the socket sent messages, the server encountered a binary
Binary Search Tree (C #)
Code implementation (the product of your own learning process, only for your own play)
/// // Binary Search Tree /// public class binarysearchtree { # region constructor Public binarysearchtree
/** //
/// Make sure that the ending IP address is greater than the starting IP Address
///
Private bool validateip (string startip, string endip)
...{
// Separate the four digits in the IP address
String [] startiparray = startip. Split
C # thread processing
Content
Use thread processing
How to: create and terminate a thread
How to: Use a thread pool
How to: Synchronize producer threads and user threads
Use thread pool
Use the threadpool class
The following example uses the.
Associate aliases with namespaces and class names to use concise notation in custom Server Control syntax.AttributeTagprefixThe alias associated with the namespace.TagnameThe alias associated with the class.NamespaceThe namespace associated with the
C # reflection generic
ASP. NET 17:29:05 read 338 comments 1 font size: LargeMediumSmall subscription
Suppose 1 I have a class named sortclass, and the class has a bubblesort (INT [] array) used to sort the array.
Suppose 2 I have a class named
# Include Int main (){Char ch;STD: CIN> CH;While (Ch! = 'Q '){Int sum = 0, value;While (STD: CIN> value)Sum + = value;STD: cout
STD: cout
STD: CIN> CH;}Return 0;
}
After I run it, I enter a character and a number to sum the values, but the
# Include
Class animal: Public cobject{Declare_dynamic (animal)};
Class dog: Public animal{Declare_dynamic (DOG)};
Class Cat: Public animal{Declare_dynamic (CAT)};
Class cfoo{Public:Void animalsays (animal *);};
Int main (INT argc, char * argv
Using system;
Using system. Management;
Namespace soyee. Comm
{
///
/// Computer Information
///
Public class computer
{
Public String cpuid;
Public String macaddress;
Public String diskid;
Public String IPaddress;
Public String
1. Code view: the code insight window is displayed. The Model View window is displayed in the upper right corner, and the code snippets window is in the lower right corner.
2. In the design view, you can see the database content displayed during
Start with the simplest
1. Implement a fixed-size Allocator
// Template class for allocating fixed-size memory blocks, which is implemented by the Internal cache algorithm,
// I use pre-allocated and recycled cache chains.
// Check whether there is
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