Document directory
1. Basic concepts of the thread, the basic state of the thread, and the relationship between states.
2. Differences between threads and processes
3. Thread Synchronization and mutex
4. Causes of deadlocks and how to avoid
1. Diamond structure in c ++
Class {};Class B: virtual public {};Class C: virtual public {};Class D: Public B, public C {};
2. Both long and float are represented in four bytes.
3. Role of the keyword volatile
A variable defined as volatile means
Lab 1:
# Define Yes 1
# Define no 0
/* Htoi: Convert hexadecimal string s to integer */
Int htoi (char s [])
{
Int hexdigit, I, j, inhex, N;
I = 0;
If (s [I] = '0') {// skip optional 0x or 0x
++ I;
If (s [I] = 'X' | s [I] = 'X ')
++ I;
}
N = 0; //
This series of articles is a book note for Lippman's "inside the C ++ object model.
1. Books on C ++ made by author Lippman: C ++, one of the first compilers:
C ++ Primer: The Encyclopedia of C ++, which is the same name as C ++ programming
When I was learning the data structure, the first thing to learn was the linked list. However, at that time, my attention was focused on the implementation of the linked list, such as the initialization of the linked list, the addition, deletion,
Original article: http://blog.csdn.net/jiangnanyouzi/article/details/3721091#reply
In "Deep Exploration C ++ object model", there is a question that is frequently asked by the technical staff when they go to a company interview: In C ++, OBJ is a
1. How to Implement polymorphism in C ++
In fact, many people know that the implementation mechanism of virtual functions in C ++ is to use virtual tables and virtual pointers. But what is it? From an article in more than Ive C ++, we can know that
Most operators can be overloaded, except for ".", ":", and "? : "And" sizeof ". Is there any non-prohibited operator? : The reason for heavy load is unnecessary. In addition, expr1? Expr2: expr3 overload functions cannot guarantee that only one of
A. Basic Knowledge
The virtual function table of the class is a continuous memory. Each memory unit records the location of a JMP command.
Note that the compiler will create a virtual function table for each class with virtual functions, which
This is the C/S structure in the C ++ Socket network program. TCP "Hello world! ", There are two console projects:
//////////////////////////////////////// /// // // tcpserver. CPP # include # include # pragma comment (Lib, "ws2_32.lib ") #
This is the C/S structure in the C ++ Socket network program. UDP "Hello world! ", There are two console projects:
//////////////////////////////////////// /// // // udpserver. CPP # include # include # pragma comment (Lib, "ws2_32.lib ") #
Java provides the interaction function with C. Here we record the interaction steps
1. Use javac to compile the written Java code into a bytecode file using javac.
2. Use javah to interpret the generated bytecode as a. h file.
3. Include the. h
Although the Ubuntu version is already 9.10, I don't want to upgrade it. After all, the 256 memory is really hard to handle. For me, stability is the most important thing. The hardware does not need to be too high, so it is still honestly stuck at 9.
The bin directory is used to store compilation results. Bin is the abbreviation of binary binrary, because the program files compiled by C are binary files, which have two versions: Debug and release, the corresponding folders are bin/debug and
After we use Asp.net technology to develop Web applications, when users enter a web site in the browser, they send an HTTP request to the server. In this case, the application layer HTTP protocol is used, in the previous topic, we briefly introduced
1. http://snippets.dzonE.com/tag/c/-- Thousands of useful C language source code snippets2. http://www.hotscriptS.com/category/c-cpp/Scripts-programs/Hotscripts-- Provides hundreds of C and C ++ scripts and programs. All programs are classified into
Type specifiers, storage class specifiers, and type delimiters are required for variable c Declaration or definition.
Type specifier: specifies the type of a variable, such as int, double, Char, pointer, struct, and enumeration.
C storage type
(1) Open Emacs and execute$ Emacs
(2) create a new program file. Press C-x C-F (Note: This is short for Ctrl + X, CTRL + F)Then minibuffer appears at the bottom of the screen. The cursor prompts you to enter the file name,The file name must contain
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