1, operating system 1.1, the components of the Linux kernel (System):The kernel mainly consists of five parts: process scheduling, memory management, virtual file system, network interface and process communication. (1) Process schedulingProcess
recently, when solving a compilation problem, I have been thinking about a problem, that is, what is the state of memory when the executable program runs under Linux, and how to allocate memory and run it. Look at the information, to summarize, it
At the time of writing the program, always more or less will add some of the printf and other statements for output debugging information, but the printf statement has a very inconvenient place is when we need to publish a program to be a piece of
In C + +, we can define the so-called symbolic constants by #define This instruction, which is directly compiled into binary code. In this case, it is basically the same as the effect of the constant value variable defined with Const. Of
For
Pre-compiling, also known as preprocessing, is the replacement of code text. Processing # At the beginning of the instructions, such as copy #include contained in the file code, #define宏定义的替换, conditional compilation, etc., is the preparatory work
Conditional compilation is something that C # is more than Java, and conditional compilation is not used in actual project development. But in a recent study of the project found this kind of problem, conditional compilation is C # More than Java
If the role of program flow control, will be directly compiled, executed.#if是对编译器的指令, the function is to tell the compiler that some statement lines want to compile when the condition is met.-----------------------------------------------------------
The Application of C ++ programming language is flexible. Its appearance has brought a lot of help to programmers. So what are the features of other programming languages? Let's start with the features of the C ++ # define pre-processing command and
Link
New Ket OJ: A number that appears only once in an array
Nine degrees oj:http://ac.jobdu.com/problem.php?pid=1351
GitHub code: 040-only one occurrence of a number in an array
Csdn: Sword refers to a number that appears only
This article is guided by:C # preprocessor directives are never translated into executable code commands, but can affect all aspects of the compilation process, common preprocessor directives have # define, #undef, #if, #elif, #else和 #endif, and so
code example:#if DEBUG Console.WriteLine ("debug:11111111111"); #else Console.WriteLine ("release:222222222222"); #endifIn this code, if the run mode is DEBUG, the code outputs "debug:11111111111"In this code, if the run mode is Release, the
C # Preprocessor directives are called at compile time. The preprocessor directive (preprocessor directive) tells the C # compiler what code to compile and indicates how to handle specific errors and warnings. C # Preprocessor directives can also
. NET consolidation precompilation command Abstract: Pre-compilation, also known as preprocessing, is to replace some code text. Processing commands starting with #, such as copying the file code contained in # include, # replacement of the define
The use of Assert_param () can be seen everywhere in the STM32 firmware library and the provided routines. If you open a stm32f10x_conf.h file in any routine, you can see that the Assert_param is actually a macro definition;In the firmware library,
Macro definition:There are three benefits to using a string instead of a data at the beginning of the code1. Make some data meaningful#define KOUT-1#define Kappsecret KDJGHHGF#define Kappkey 1234562, easy to use, similar to the meaning of the
Given an n-point m-edge graph, the minimum edge between all the simple paths of two points on the graph is obtained.$ n,m,q \leq 100000, w_i \leq 10 ^7$# # SolutionConsider establishing a generalized round square tree with a pinch-point pair, and
Link
New Ket OJ: Balanced binary tree
Nine degrees OJ: not included
GitHub code: 040-Balanced binary tree
CSDN: Sword offer–040-Balanced binary tree
New Ket OJ
Nine degrees OJ
csdn
GitHub
Link
New Ket OJ: First common node of two lists
Nine degrees oj:http://ac.jobdu.com/problem.php?pid=1505
GitHub code: 037-The first common node of a two-linked list
Csdn: Sword refers to the first common node of a list of two
See an article on using management from msdn.Article, Feel good, original: http://msdn.microsoft.com/zh-cn/library/bb514115.aspx
In the Visual Studio user interface"Remove unused using"Option to removeSource codeUnusedUsingCommands,UsingAlias
#ifndef the use of #define#endif#ifndef in the fileThe #ifndef of the first piece, this is a very important thing. For example, you have two C files, and these two C files include the same header file. At compile time, these two C files are compiled
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.