The book and articles on the "design patterns" on the market all target object-oriented languages such as Java, C ++, and C #. It seems that the design patterns cannot be implemented without the object-oriented features, it is useless.
Is that true?
Document directory
Basic use of C ++ compiler g ++ in Linux
Basic usage of C ++ compiler g ++ in Linux {
Commit it (this)
} "Onmousedown =" function onmousedown ()
{
CA. Q ('blog _ entryview_assist_topright ');
} "Href =" javascript: void (0); ">
Today, when I write a program, I want to use smart pointers and vector containers to solve the member management problem of pointer arrays. I have used multiple pointer containers in my program, which leads to a problem. The clearing of these
Constant pointerConst int * P/INT const * PPointer constantInt * const PRegular referenceConst Int & P =;
Array1. The constant table is given in curly brackets when defining the regular table;2. If the given number is insufficient, the remaining
From csdn
CRC verification algorithm C # Implementation 1-interface implementationCRC verification has a CRC 8-bit 16-bit 32-bit. Therefore, before you implement these verification calculations, you must first implement their interfaces!
Using
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
# Include
/*
This function calls
Strtol () function.
The source code will be provided later.
*/
Int my_atoi (char * Str)
{
Return (INT) strtol (STR,
[My C language interview series] 003
Summary of the infinite loop format?
Summary of the infinite loop format
Below are several "Famous" Endless loops:
(1) endless operating system loops;
(2) Win32 program endless loop;
(3) endless loop of
[My solutions for the C language interview series] 005 bitwise reverse Character Problem
Reverse character by bit
Write a C function to swap the bits of a unsigned char so that its bits become the mirror image of the char. MSBs become its
[My solution C language interview series] 008 remove repeated numbers in the array
Remove repeated numbers in the array
There is an array with a size of 100. The numbers in the array are between 1 and 99, but the numbers in the array are
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
/*
Calculate the remainder of x/y. Returns X-N * y, with the same symbol as Y.
N = [x/y] (rounded to the left zero)
*/
Double my_fmod01 (Double X, Double Y)
Differences between C/C ++ and JavaDifference between Java and C/C ++
See: http://docs.rinet.ru/Jintra/appe.htmTranslation of I. a_7
Preprocessor ):All C/C ++ compilers have a stage of processing in the compilation process called a pre-processor.
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
/*
Memcpy () copies a source memory buffer to a destination memory buffer.
This routine does not recognize overlapping buffers, and thus can lead
To
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
# Include
/*
Searches at bufferfor the given character, stopping when characteris first found or CNT bytes have been searched through.
Searches for the CH
[C language library function source code]
[This program is compiled in Dev C ++ 4.9.9.2]
/*
Obtain the position pointer of the first character in S1.
*/
# Include
Char * my_strpbrk (const char * S1, const char * S2)
{
Const char * c = S2;
If
I. Use of const in C
From: http://blog.chinaunix.net/u/26828/showart_667881.html
Const is a key word in C language. It specifies that a variable cannot be changed. Using const can improve the robustness of the program to a certain extent. In
After one morning's efforts, I finally run the C ++ version of mapreduce in pseudo-distributed mode. The following describes the process one by one.
I. Prerequisites1. hadoop 1.0.x has been installed on Linux (my system is centos5.5 (64-bit system),
It is inconvenient to process strings in C language. Fortunately, library functions provide rich functions for processing strings. There are some functions that we usually don't use very much, but it's always good to know that there is such a thing
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