The use of define is only a pure substitution function, and the substitution of the macro definition is the replacement that the preprocessor handles.
One: Simple macro-definition usage
Formatting: Replacing content with #define Identifiers
The
1. Const is used for class member variable definition once defined and cannot change its value. Define defines global constants that can be accessed anywhere.
2, define can not be defined in the class and Const.
3. Const cannot define constants in
1. Grammar
Statement:
Parameter data = 8 ' D14;
' Define Data 8 ' D14
Use:Data
' Data
2. Scope
Parameter the file that acts on the Declaration, ' define reads from the compiler until the end of the compilation is valid, or the ' undef command
Uchome1.21.5 code learning common. php. UCHOME code is still very good. learn it! Copy the code as follows :? Php *** defines some constants * @ define (IN_UCHOME, TRUE). It is said that it is good to prevent files from illegally containing de
Guo XiaoxingWeibo: Guo Xiaoxing's Sina WeiboEmail:[email protected]Blog: http://blog.csdn.net/allenwellsGithub:https://github.com/allenwell
This article is the opening article of "User interface: Android-ultra-pull-to-refresh", which mainly
Configuration files in two formats:DTD and Schema differences: http://www.cnblogs.com/zhaozhan/archive/2010/01/04/1639194.html1 XML version= "1.0" encoding= "UTF-8"?>2 Beansxmlns= "Http://www.springframework.org/schema/beans" 3 Xmlns:xsi=
Why does this happen? can you see defined ('in') or die ('Access Denied ');
This sentence. There are all controller files at the front-end, but why is this done. the PHP file defines this constant and then checks whether it is defined, but the front-
From: http://hi.baidu.com/feelixus/blog/item/30c2394ee6f4dbccd0c86ade.html
Because the session value has not been set before, so that the newly logged-on website times out in less than one minute. To sum up, it turns out to be the
UCHOME code is still very good. Learn it!
Copy codeThe Code is as follows: /**
* Define Constants
*/
@ Define ('in _ UCHOME ', TRUE); // It is said that it can prevent illegal file inclusion
Define ('x _ VER ', '1. 2'); // Uchome version
Define ('x _
What is a class constant? What we can understand in PHP is that the value is constant, so what is a class constant? In fact, the class constants are also easy to understand, we can always keep the constant value of the class is called constants, and
Soft JAVA pen questions, soft java questions
1. What method of MyObject will affect the correctness of the if expressionList l = new vertex List ();L. add (new MyObject (""));If (l. contains (new MyObject (""))){}A. toString ()B. equals ()C.
This is the php code used by uchome. when you are learning programming, you can see some mature cms systems at that time, provided that you are familiar with the program, otherwise, the study will be dispelled. UCHOME code is still very good. learn
Summary of php application path variables. Local server, domain name d.com, root path D: phpnowvhostsd.com. yii, with the requeir_onceaa.php file in the x. php code in the root directory, and aa. php requeir_onceabb.php
Local server, domain
This is the php code used by uchome. when you are learning programming, you can see some mature cms systems at that time, provided that you are familiar with the program, otherwise, the study will be dispelled. UCHOME code is still very good. learn
How does the define constant prevent the address bar from directly accessing the background file? define cannot be cross-page, but recently it was like this in an open source PHP Project: for example,. php: directly define ('in _ TM ', TRUE); B. php
Simple and clear forwarding and redirection ~~~, Forward redirection
There is an important difference between redirection and forwarding:
Forward ----- the JSP Container uses an internal method to call the target page. The new page continues to
This is the reason why, help to see good--
Defined (' in ') or Die (' Access Denied ');
This sentence. In the foreground controller file has, but why to do so, he defined the constant in the index.php file, and then to check whether he is defined,
PX to define the width, accurate to the pixel, so very neat, but with the% to define, in IE Select and Input:text on the right, other browsers are OK, so can only be used for IE hack to deal with
To implement a large form page, form elements such as
JavaScript syntax is weird for developers familiar with class-oriented object-oriented languages (Java or C + +), because JavaScript is a dynamic language and it has no class concept (ES6 adds the class keyword, but only the syntactic candy,
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.