C Primer Plus after reading, primerplus after reading
C Primer Plus (Chinese version 6)
I searched from my website that this book is suitable for beginners and is a C language book that I can read by myself. So I bought one online.
It's really worth the money. I systematically learned the C language through this book,
1th Chapter Preparation of knowledge1. Ritchie hopes to have a language that combines the efficiency of low-level languages, the ability to access hardware, and the versatility and portability of high-level languages, so he developed the C language based on the old language.2. After a certain degree of success in C + +, Stroustrup added a template, which makes it possible to perform generic programming.3. T
statements can be divided into 4 types: Declaration Statements, assignment statements (Assignment statements are special cases of expression statements), function statements, structured statements.4. Type conversionBasic rules for type conversions: 1. When the expression has char and short types, it is automatically converted to int and, if required, automatically converted to unsigned int. Under Kr C, float is automatically converted to double. 2. In any operation that contains two data types,
Tags: process master-slave replication 51cto term ant res mongod perform share pictureAdd field is painful, need to rebuild the table, especially for the million-level table, although the online DDL can avoid the lock table, but if it takes 30 minutes to execute on the main library, then copy to the execution from the library, master-slave replication is delayed. With the Instant ADD column feature, you just have to bounce down the soot and the fields
JS CodePHP codePublic Function GetNext (){$next = $sql//Lookup database Pid=post The ID of the SQL$str = "foreach ($next as $val) {$str. = "}$msg ["str"] = $STR;echo Json_encode ($msg);Die ();}Can be called anywhere, but there is a small flaw that I choose to ignore. Hee HeeAjax plus PHP for three-level linkage
layer, we actually have 0, 1, 2 in the sub-view array. The allocation order also changes synchronously, this is known when using Exchangesubviewatindex, because it is directly the order of the array of exchanges, you can check Nsarray by the following methods: Subview2=self.view.subviewS UIView *view11=[subview2 Objectatindex:5]; View11.backgroundcolor=[uicolor Purplecolor]; [Super Viewdidload]; Do any additional setup after loading the view, typically from a nib.} We want to change th
Do the ASP's two-level domain name has been used in the use of, but the use of another method: the front desk JS plus ASP's steering program is not, the program debugging has passed but can not turn to do not know why please help point out why, thank you!!!
Dim Whkdbq,whksql,whkrs,whkcount
Set whkconn = Server.CreateObject ("ADODB. Connection ")
WHKDBQ = Server.MapPath ("Sqltaofun.mdb")
Whkconn.open "Provid
——————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————The question of reading "Computer System Essentials: Building a modern computer from scratch": What are the essential links between high-level and low-
C ++ Primer Plus Reading Notes,
This article aims to record some key knowledge points in the fifth edition of C ++ Primer Plus for future reference. This article will be updated constantly ......
Chapter I. III
1. unsigned integers cannot store negative values. The advantage is that they can increase the maximum value that a variable can store. For example, if th
the conversion is that it converts the numeric values stored in the computer's binary format into a series of characters for easy display. The "transformations" here can be understood as "translations".The 4.4.4 section focuses on mismatched conversions, which involve a lot of computer knowledge at the bottom. In particular, parameter passing works: The computer places the value of the variable on the stack, but reads it according to the conversion descriptor.In addition, the printf () return v
declarations in a class: A struct, class, or enumeration declared in a class declaration is referred to as being nested within a class and scoped to the entire class. This declaration does not create a data object, but simply specifies the type that can be used in the class. If the declaration is made in the private part of the class, the declared type can be used only in that class, and if the declaration is made in the public part, the declared type may be used from the outside of the class
namespace:Namespace{int ice;int bandycoot;}This is like following the using compiler directive, that is, the name declared in the namespace is potentially scoped to: from the declaration point to the end of the declaration area. From this perspective, they are similar to global variables. Because the namespace does not have a name, you cannot use the name in that namespace in a file other than the owning file. This provides a substitute for the static variables that are linked internally.34. Wh
. For a base class, you should provide a virtual destructor, even if it does not require a destructor.28. Constructors, destructors, and assignment operators cannot be inherited.29. You can assign a derived class object to a base class object, but at this point the assignment operator is responsible only for the base class member.30. The answer to the question "whether a base class object can be assigned to a derived class object" is "maybe". If a derived class object contains a constructor that
functions, and their overloaded versions.The prototype and definition of an explicit materialization should begin with templateMaterialization takes precedence over regular templates, rather than template functions over materialization and general templates.19. To learn more about templates, you must understand the terminology instantiation and materialization P288.20. Including the function template in the code itself does not generate a function definition, he is just a scenario for generatin
The 2nd chapter begins to learn C + +1. Endl ensure that the output is refreshed before the program continues to run (it is immediately displayed on the screen), and that using "\ n" does not provide such a guarantee, which means that in some systems, it is sometimes possible to prompt after you enter information.2. Keywords and parentheses in C + + can add spaces or noreturn (0);return (0);int main ();int main ();are legal.But Return0, there must be a space in the middle.3. The statement statem
into 3 categories:Non-template friends, friends themselves are not template functions, but only use the implicit instantiation of the template class as parameters.Constraint template friend, each materialization of a class obtains a matching friend, and the type of friend depends on the type of materialization. Declare a friend function template outside the class declaration.Non-constrained template friend, each materialization of a friend is all materialized friends of the class. Declare a fri
One of the great features of C is that it allows us to control the details of the program. C's memory management system is an example of this control capability. It implements these controls by letting us decide which functions know which variables and how long a variable exists in the program.1. Storage classes and their descriptorsThe main definition: scope, link, and storage time. Other programming languages also have similar concepts. The C language defines 5 storage classes through these th
is passed as parameter, and the original data is processed directly. 3. Other three types of data processing featuresHere's a brief look at the other three characteristics of processing data: Union, enumeration, and typedef.A union is a data type that can store different types of data in the same storage space (but at different time). Each variable is "mutually exclusive"-the disadvantage is not enough "containment", but the advantage is that memory usage is more granular and flexible, but also
the parameter to the function, and before compiling, the macro calls the language symbol of the argument to the program. #define Square (x) x*xx=4evaluating Square (x): The result is a //aevaluating square (2): The result is 4 B evaluating SQUARE (x+2): The result is a //c evaluating 100/square (2): The result is a //dFor A, B results are the same. But the other results are different.The original x*x parameter in C should be x+2*x+2D is 100/2*2, so we should count 100/2 first.
C
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.