Data type:1. Basic data typesIntegral type: basic integer int short integer LongCharacter CharFloat type (real type): Single type float double2. Construction typeArray typestruct type structCommon body Type UnionEnum type enum3. Pointer type4. Empty
I often encounter defining global constants when I brush a question. I usually use # define (probably because of the very little contact with the const reason)As usual, when we did 51nod1082 yesterday, the violence was defined most by # define. But
Title Address: Spoj 375Tree chain split first!Really is a seemingly very high-level data structure, in fact, the tree's edge from the tree structure into a linear structure, so you can use a segment tree or a tree array and other data structures for
Data type
Constant
Variable
printf Function Introduction
scanf function Introduction
Operator
Data typeThe data type is how the data is stored in memory.There are 5 Big data types in C: Basic type, constructed type, pointer
Title Address: HDU 5269The game thought of the idea of divided treatment, but the brain is disabled. ,。 Write The trouble ... It's been tuned for a long time. (Divide and conquer write too little ...) After the game to optimize a bit. It's over.My
The const usage is primarily to prevent the defined object from being modified again, to initialize the variable when defining the object variableLet me explain some common uses1. Used to define a constant variable so that the variable can no
Title Address: POJ 1987Point divide the template problem, with POJ 1741 almost the same, ...The code is as follows:#include #include #include #include #include #include #include #include #include #include using namespace STD;#define LL
Title Address: Bzoj 2152Find out how many pairs of weights and points are multiples of 3. The simplest point division of the rule.The code is as follows:#include #include #include #include #include #include #include #include #include #include using
Title Address: POJ 3107or the center of gravity of the bare tree, but this requires that all the center of gravity be output. Very simple.The code is as follows:#include #include #include #include #include #include #include #include #include
Title Address: HDU 5266This problem with the RMQ of the method of LCA to do is very simple, only need to find the L-r interval of the DFS sequence of the largest and smallest can be, then use a line segment tree or RMQ maintenance of the interval of
For the first time, we use Gaussian elimination to solve the light plate as a linear equation group./*########################################################################## File name:poj_1222.cpp# Author: caolei# Created time:2015/7/20 15:48:04##
Title Address: HDU 5145Mo team is really good magic. This complexity is only N*SQRT (n) ...Bare team tiles, first offline, then by the left end of the block, by the number of blocks as the first keyword sort, and then by the R value as the second
Title Address: POJ 1470LCA Template questions: The input is a bit of a pit, and the first node of the input is not necessarily the root.The code is as follows:#include #include #include #include #include #include #include #include #include using
ProblemA certain forest consists of N trees, each of which are inhabited by a squirrel.The boundary of the forest is the convex polygon of smallest area which contains every tree, as if a giant rubber band had Been stretched around the outside of
Title Address: POJ 3723Maximum Spanning Tree: Same as the minimum spanning tree principle. Just the order of the sort changed.The code is as follows:#include #include #include #include #include #include #include #include #include using namespace STD;
//Main.mC2_ Branching structure//Created by Dllo on 15/7/1.Copyright (c) 2015 Zhozhicheng. All rights reserved.//#import Write a macro definitionMacro definitions are used to replace code#define PI 2.15A macro definition is a substitution of the
Title Address: PortalFirst use DP to find all the matching requirements of the semi-palindrome, marked out. Then construct the dictionary tree. Then DFS again to find out all the nodes of the subtrees, the last search will be able to identify the
After understanding the PHP variables, you must understand the use of rules, definitions, output methods, and storage methods before using variables.
I. PHP Data output
PHP supports a wide range of data types. Later, I will use it again and again.
PHP Basic Syntax
PHP // This is PHP single -line Comment/ * This is a multiline comment * /// Each PHP statement ends with a semicolon--must be used! // PHP is a case-sensitive language-except for the name of the
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.