Definition class
In C #, use the class keyword, a name, and a pair of braces to define a new class. The data members and methods of the class are located within the class body (between a pair of braces)
Class syntax format
Class myclass
{
/
// Value Type
C # type. NET Framework type
Bool System. Boolean
4. Logical value of the Byte 32bit Boolean variable; optional values: true or false; default value: false
Byte System. Byte
1 Byte 8bit unsigned integer unsigned Byte, the stored value
Tags: alg, c, blog, book, linux
1. Insert sorting
1.1 algorithm ideas
The main idea of inserting sorting algorithms is:
1) The sequence to be sorted is divided into two parts: sorted part (A) and unsorted part (B ).The sorting part is separated by
C ++ functions differ from C functions in four advanced features:
I. Four new mechanisms: overloaded, inline, const, and virtual.
Overload function conditions: 1. The function name is the same, 2. the same scope (that is, the member function of a
It is mainly implemented through the ownerdraw attribute.
1. Run Appwizard to generate a test project based on the dialog box, and add a cbutton control to the dialog box. On the general properties page of The cbutton control, change the control ID
Today, when I read a piece of C # code, I found that I don't know the ref and out keys. So I checked the C # language-related tutorials and learned them in depth.
The ref keyword is used to pass the parameter by reference type, so that when the
Using System;
Using System. Data;
Using System. Data. SqlClient;
Using System. Configuration;
Using System. Web;
Using System. Web. Security;
Using System. Web. UI;
Using System. Web. UI. WebControls;
Using System. Web. UI. WebControls.
1. binning, unboxing, or Alias
In many C #. NET books, int-> Int32 is a packing process, and vice versa. The same applies to many other variable types, such as short Int16, long Int64. Generally, programmers do not need to understand this process,
The pointers in C language are flexible and convenient, but also error-prone. Many beginners of C language, and even the old birds of C language, are easily planted under the pointer of C language. But it is undeniable that the pointer position in
Original link http://www.cnblogs.com/dahuzizyd/archive/2006/12/22/Excel_cSharp_report_4.html
When using Excel as a report, the page may be displayed, which is divided into multiple sheets. If you want to retain the header on each page, you need to
// Program. csUsing System;Using System. Collections. Generic;Using System. Windows. Forms;Namespace DriveInfo_GetDrives{Static class Program{/// /// Main entry point of the application./// [STAThread]Static void Main (){Application.
Method
In C #, create a function implementation method. The method is a member that executes computing or behavior by objects and classes. The method specifies the access level, return value, method name, and method parameter, declared in the class
Reading directory
I. Concept
Ii. Instances
Iii. Running Effect
I. Concept
In C #, when you use the ToString method to convert other types (such as int, double, DateTime, and Decimal) to a string, you can specify the display format of the string.
C # is very powerful. You can use it to easily make your own file browser. The following describes the general implementation process of the file browser. For more information about the usage of these controls, see the online help of C.
You need to
1. Inheritance allows reuse of existing classes to create new classes. Principle: A subclass derived from a class has all the public attributes of the class.The base class for creating a new class is called the base class or parent class, and the
Descending order of priority
Operator
Function
Usage
::
Full Local Area
: Name
::
Category
Classtype: name
::
Namespace domain
Namespace: name
.
Member Selection
Object.
A few days ago, my colleague asked me a question. a cs-based program directly uses SQL Server as the Server, and each client directly connects to the database for operations, if the number of opened clients is too large, the number of SQL Server
What is C ++/CLI? C ++, of course, refers to Bjarne.
Stroustrup, a C ++ language invented in BELL Labs, implements a static object model with optimized speed and size during runtime. However, it does not support dynamic modification of programs
In. NET, enumeration is generally used in two ways. One is to represent a unique sequence of elements, such as days in a week, and the other is to represent a variety of composite states. In this case, you need to add the [Flags] feature to the
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