These are good discoveries.
Google + Baidu will have more ....
Linux c All-in-One learningPDF available
Http://blogimg.chinaunix.net/blog/upfile2/101026210032.pdf
This is the library connection
P179, about attributes.
The compiler automatically generates names for these methods by prefixing get _ or set _ before the property names specified by developers.
In addition to the method used to generate accessors, the compiler
1. extern "C" is a keyword in C ++, which is not in C. That is to say, for a pure C compiler, it does not know extern "C" at all, which will lead to compilation errors.
2. extern "C" is used to make C ++ compiled functions and variable names
The books listed here are books that simply learn the C/C ++ language, independent of the development platform.
1. Good books on C Language Learning
(1) Tan haoqiang's cProgramDesign, entry-level classic.
(2) c expert programming: the
CodeFrom Linux C programming from entry to entry
The code is divided into the basic operations of the server and the client.
The server establishes sock and binds it to wait for receiving
The client accepts user input and sends it to the
System ("");
Popen
Exec Series
Execl and other similar functions can execute commands in any shell.
# Include
IntMain (){System ("ls-L ");Return 1;}
Or
Int execl (const char * path, const char * Arg ,...);Int execlp (const char * file, const char *
1. auto_ptrIt is a smart pointer ).
# Include You can use it later. Located in the memory header file.
We often create an object and delete it when it is not needed.
// For example, classa * PTR = new classa; // do something Delete PTR;
However, we
//////////////////////////////////////// //////////////////////////// The following is a self-written Program for finding any binary code Haiming code (running in the C ++ environment)//////////////////////////////////////// /////////////////////////
Advice to programmers:It's better to try it over thousands of times!Reading thousands of rows is better than hitting a row by hand!A thousand rows by hand is better than a single step!A thousand lines of single-step source code is better than a
Re-learn some basic algorithms and write some basic ones.
The original array of the Sorting Algorithm here is static and randomly typed into a few values. You can modify it to dynamically generate array elements (modified and pasted)
C language code:
C # users may find that the event keyword is sometimes dispensable.
Namespace consoleapplication3 { class Program { static void main (string [] ARGs) { myclass1 OBJ = new myclass1 (); obj. aevent + = new eventhandler (myeventhandler); // obj.
P. j. plauger's chapter chapter0 in the book "The Standard C library" has the following question in practice: Write a correct program containing the following statements: X: (struct x *) X)-> X = x (5 );
And describe the five completely different
Try catch finally has three simple keywords, but the processing process is complicated. Next we will discuss them in various situations, draw a conclusion, and propose suggestions for use.
1. No exceptions
class Program { static void
Blog address from: http://blog.sina.com.cn/s/blog_79b802790100q8tt.html
Finally, I tried to use ASM in Linux.AndC and generate the-ELF File. Functions in a program call each other using a stack.
And interruptInt0x80But it is not clear. It is
Virtual functions are the key to implementing polymorphism in C ++. Without virtual functions, C ++ can only be ob and cannot complete oo. I have read many articles about the implementation mechanism of virtual functions in VC ++. The links are as
Transferred from: http://www.prglab.com/cms/pages/c-tutorial/control-structures/functions-ii.php2.3 function II (functions II) parameters are passed by value and by address (arguments passed by value and by reference)
In all the functions we have
From: http://blog.csdn.net/smstong/article/details/6578389
1. Test code
[CPP]ViewPlaincopy
# Include
# Include
Using namespace STD;
Class cempty
{
};
Int main (INT argc, char ** argv)
{
Cempty * pobjinheap = new cempty ();
Cempty
From: http://www.cnblogs.com/tracylee/archive/2012/12/18/2822431.html
In actual production, if you encounter a complex class, if you can see the memory model structure of this class, then subsequent operations are basically not difficult; so,
Guidance:Recently, I am working on a small project. Because the intermediate algorithms are complicated and messy, I want to output a monitoring value where I need it, to monitor the execution of the intermediate algorithm, I first thought of
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