Assembly information can be accessed by assembly classes in C #.
1. Allows access to the META elements of a given assembly, including methods that can load and execute the assembly;
2. Loading assemblies: Using static method Assembly.Load (assembly
The concept of C + + filesTo date, the input output we have discussed is based on a system-specified standard device (input device is keyboard, output device is a monitor). In practical applications, disk files are often used as objects. That is,
C + + inheritance and combination of detailed explanationWe know that in a class you can use a class object as a data member, a child object (see: C + + A constructor for a derived class that has child objects). In fact, the type of an object member
Replication of C + + objects
It is sometimes necessary to use multiple identical objects, for example, each product of the same model is the same from the external to the internal properties, if you want to process each product separately, you need
Declaration of C + + classes and creation of objectsA class is a template for creating objects, a class can create multiple objects, each object is a variable of a class type, and the process of creating an object is also called a class
The importance of proper memory managementC and C + + programs that have memory errors can cause various problems. If they leak memory, the running speed slows down and eventually stops running, and if memory is overwritten, it becomes very
You need to use the initialization member list in the following three situations:
First, the data member that needs to initialize is the case of the object;
Second, class members that need to initialize the const modifier;
Third, the reference
C language Execl () function: Performing file functionsheader file:
#include
To define a function:
int execl (const char * path, const char * arg, ...);
Function Description: The EXECL () is used to execute the path of
Every time I write a summary I think it is a headache, because I know the abstract is really important, it almost directly determines the number of readers. May have spent 962 of tigers to write out something that because of the failure of the
C language creat () function: Creating a file function
Header file:
#include #include #include
To define a function:
int creat (const char * pathname, mode_tmode);
Function Description:1, parameter pathname point to
Principle:
1, the nature of the Commission is a pointer, a function pointer, get the function of the first address can;
C # 's delegate adds security, which is reflected in the type detection of the function instruction block referenced by the
A friend function is a non-member function that can directly access a private member of a class. It is a normal function that is defined outside of a class, and it does not belong to any class, but it needs to be declared in the definition of a
1. malloc () function1.1 malloc's full name is the memory allocation, Chinese called dynamic memory allocation.Prototype: extern void *malloc (unsigned int num_bytes);Description: Allocates a block of memory with a length of num_bytes bytes. If the
To tell the truth C + + is used in school before, from graduation to now has been using C embedded programming, now moved out of C + + grammar, if the understanding of the wrong place, but also passing friends more correct ~ ~ ~
constructor is used
C language ToLower () function: Convert uppercase letters to lowercase lettersheader file:
#include
To define a function:
int toupper (int c);
Function Description: If the parameter c is a lowercase letter, the
C language STRCHR () function: Find out where a character first appears in a string
Header files: #include
STRCHR () is used to find the first occurrence of a character in a string, and its prototype is:
char * STRCHR (const char *STR,
Char variables in the C language
Char is one of the more bizarre in C/s + + Integer data, and the other, such as Int/long/short, when not specified signed/unsigned, is signed by default. Although Char is unsigned in the standard (since the char
Topic
Topic Description:Converts the number X of M into the number output of N.Input:The first line entered consists of two integers: M and N (2The following line enters a number of x,x that is M, and now requires that you convert the M-ary number
Keyword const is used to define constants, if a variable is modified by the const, then its value can not be changed again, I think someone must have such a question, C language is not a #define, why do you have to use the const, I think the
The usual function callsAn example of a common function call:
Contains the header file
void myfun (int x) itself;//This statement can also be written as: void myfun (int);
int main (int argc, char* argv[])
{
myfun (10);//Here is call
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