variables are allowed. Of course, non-constant global variables in multi-threaded Code are also forbidden. Never use function return values to initialize global variables.Unfortunately, the calling sequence of the constructor, destructor, and initialization operations of global variables is only partially specified. Each generation may change, resulting in hard-to-find buckets.Therefore, global variables of the class type (including STL string, vector, and so on) are prohibited, because their i
1. General rules: Do not abbreviations at will;
2. Use uppercase letters and underscores (_) for macros and enumerations;
3. the variables (including class and struct member variables), files, namespaces, and access functions are all lowercase letters and underscores (_). The class member variables are underlined and ended with G _. 4. refer to existing or similar naming conventions ......
Naming Conventions
The most important consistency rule is naming management. The naming
Fancyselect is a compact and practical jquery dropdown box to beautify the plug-in. The dropdown box to beautify the plug-in using flat design style, is the pursuit of fashion developers of the preferred dropdown box to beautify one of the plug-ins.
How to use
HTML structure
Fancyselect is very simple to use, and it can be used in conjunction with jquery or Zepto. Place some
By default, Fancyselect only uses native dropdown boxes and styles on IO
This is an article written on January 23, 1996, now has 9 years, very old, may not be able to keep up with the situation, but some things are still worthy of the current developer learning, I translated this text for the reader's reference only.
Scope
1. Namespaces (namespaces)
In the. cc file, the use of unnamed namespaces is advocated (unnamed namespaces, translator Note: Unnamed namespaces, like anonymous classes, seem to be rarely introduced:-(). When using a named namespace, its name
General naming rules:The function name, variable name, and file name should be self-described, and abbreviations should be avoided. Types and variables should use nouns, and functions should contain verbs.Int num_errors; // good.Int
To sum up the precautions for the class: 1. do not perform too many logic-related initialization in the constructor; 2. the default constructor provided by the compiler does not initialize the variables. If other constructor is defined, the compiler
Use a consistent structure in the class definition.
Class Person
# Extend and include the Go
extend Somemodule
include Anothermodule
# constants are 5/>some_constant =
# Afterwards we have attribute macros
About the class considerations, summed up: 1. Do not do too much logic-related initialization in the constructor; 2. The default constructor provided by the compiler does not initialize the variable, and if other constructors are defined, the
Let's take a look at google's C ++ code specifications and styles. One by one. Read the header file first today.
Note:1) Try not to use # include.When a header file is included, a new dependency is introduced. Once the header file is modified, the
Name an identifier in English.
# bad-identifier using non-ascii characters
заплата= 1_000
# Bad-identifier is-a Bulgarian word, written with Latin letters (instead of Cyrillic)
Zaplata = 1_000
# good
salary = 1_000
Name
1. General rules: do not arbitrarily abbreviated; 2. macros, enumerations, etc. use all uppercase + underscores; 3. variables (including class, struct member variables), files, namespaces, access functions, and so use all lowercase + underline,
entering the "My Product Home page", the page shows all the items I like, and can also switch to my experience page to view my product experience. On the right side of the page is a list of items that other users like.
From the current test page published, watercress This launch of the "people talk about the goods" should be a lightweight shopping guide page. The overall style of the page is more refreshi
JS enables users to select conditions on the page to change the style of the page, page style can be decorated by style, can also be decorated by CSS, first look at JS change style style, the code is as follows:
Test4 (this) represents the current
Let's t
1. Warehouse Style
In the repository style. There are two different components: the central data structure shows the current state. The independent component is executed on the central data storage. The interaction between the warehouse and the external component is greatly changed in the system.
If a process execution is triggered at a certain time in the input stream, the repository is a traditional datab
In HTML, the reference CSS style has 3 ways: external style sheet, inner style sheet, inline style.This code is compiled from w3school:http://www.w3school.com.cn(1) An external style sheet, which refers to a style defined in another CSS file by using link in the head tag of
Style sheet Classification:1. Inline style sheet,and HTML joint Display, example: 2. Inline style sheetAs a separate area embedded in the Web page, must be written in the head inside.3. external style sheetCreate a new a CSS file used to place a style sheet. If you want to c
External style sheet
When a style needs to be applied to many pages, the external style sheet is ideal. When using an external style sheet, you can change the appearance of the entire site by changing a file. Use the
linkRel = "stylesheet" type = "text/CSS" href ="mystyle.css"/> Internal
Use JavaScript to create new style sheets and new style rules, JavaScript style sheets
In this age, the popularity of Web pages using a lot of JavaScript, we need to find a variety of ways to optimize them, make them faster. We use event delegates to make event listeners more efficient, use frequency reduction techniques to limit the number of uses of certain me
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.