ÉèΪÊ×Ò³ ¼ÓÈëÊÕ²Ø

TOP

C++¹Ø¼ü×Ö ÃæÊÔÌâ(¶þ)
2014-11-24 01:20:08 ¡¾´ó ÖРС¡¿ ä¯ÀÀ:343´Î
Tags£º¹Ø¼ü×Ö ÊÔÌâ
It can only be used to explicitly construct an object.


(20)export
MSDNֻ˵The export keyword is not supported on templates.Ò»ÖÖµ¼³öÓï¾ä°É..


(21)extern
extern ÒâΪ¡°ÍâÀ´µÄ¡± ËüµÄ×÷ÓÃÔÚÓÚ¸æËß±àÒëÆ÷£ºÓÐÕâ¸ö±äÁ¿£¬Ëü¿ÉÄܲ»´æÔÚµ±Ç°µÄÎļþÖУ¬µ«Ëü¿Ï¶¨Òª´æÔÚÓÚ¹¤³ÌÖеÄijһ¸öÔ´ÎļþÖлòÕßÒ»¸öDllµÄÊä³öÖС£ÉùÃ÷±äÁ¿ÊÇÔÚÆäËûÎļþÖÐÉùÃ÷(Ò²¿ÉÒÔ¿´×öÊÇÒýÓñäÁ¿).Objects and variables declared as extern declare an object that is defined in another translation unit or in an enclosing scope as having external linkage.


(22)false,true
boolÀàÐ͵ÄÁ½¸öö¾ÙÖµ.


(23)float
ÉùÃ÷¸¡µãÐͱäÁ¿»òº¯Êý.


(24)for
Ò»ÖÖÑ­»·Óï¾ä(¿ÉÒâ»á²»¿ÉÑÔ´«).Use the for statement to construct loops that must execute a specified number of times.


(25)friend
ÉùÃ÷ÓÑÔªº¯Êý»òÕßÀà.The friend keyword allows a function or class to gain access to the private and protected members of a class.


(26)goto
ÎÞÌõ¼þÌøתÓï¾ä.Performs an unconditional transfer of control to the named label.


(27)if
Ìõ¼þÓï¾ä.Controls conditional branching.³£ÓëelseÒ»ÆðÓÃ.


(28)inline
ÉùÃ÷¶¨ÒåÄÚÁªº¯Êý,±àÒëʱ½«Ëùµ÷ÓõĴúÂëǶÈëµ½Ö÷º¯ÊýÖÐ.The inline specifiers instruct the compiler to insert a copy of the function body into each place the function is called.


(29)int
ÉùÃ÷ÕûÐͱäÁ¿»òº¯Êý.


(30)long
ÉùÃ÷³¤ÕûÐͱäÁ¿»òº¯Êý.


(31)mutable
This keyword can only be applied to non-static and non-const data members of a class. If a data member is declared mutable, then it is legal to assign a value to this data member from a const member function.


(32)namespace
Dynamically imports an element behavior into a document.


(33)new
¶¯Ì¬ÄÚ´æ·ÖÅä.Allocates memory for an object or array of objects of type-name from the free store and returns a suitably typed, nonzero pointer to the object.


(34)operator
The operator keyword declares a function specifying what operator-symbol means when applied to instances of a class.


(35)private
Àà˽Óк¯ÊýºÍÊý¾Ý³ÉÔ±µÄ±êʾ.When preceding a list of class members, the private keyword specifies that those members are accessible only from member functions and friends of the class. This applies to all members declared up to the next access specifier or the end of the class.


(36)protected
The protected keyword specifies access to class members in the member-list up to the next access specifier (public or private) or the end of the class definition.


(37)public
When preceding a list of class members, the public keyword specifies that those members are accessible from any function. This applies to all members declared up to the next access specifier or the end of the class.


(38)register
ÉùÃ÷»ý´æÆ÷±äÁ¿.The register keyword specifies that the variable is to be stored in a machine register, if possible.Õâ¸ö¹Ø¼ü×ÖÃüÁî±àÒëÆ÷¾¡¿ÉÄܵĽ«±äÁ¿´æÔÚCPUÄÚ²¿¼Ä´æÆ÷ÖÐ,¶ø²»ÊÇͨ¹ýÄÚ´æÑ°Ö··ÃÎÊ,´Ó¶øÌá¸ßЧÂÊ¡£


(39)return
×Ó³ÌÐò·µ»ØÓï¾ä(¿ÉÒÔ´ø²ÎÊý£¬Ò²¿´²»´ø²ÎÊý),·µ»Øº¯Êýµ÷Óõã.Terminates the execution of a function and returns control to the calling function (or, in the case of the main function, transfers control back to the operating system). Execution resumes in the calling function at the point immediately following the call.


(40)short
ÉùÃ÷¶ÌÕûÐͱäÁ¿»òº¯Êý.


(41)signed,unsigned
ÉùÃ÷ÓзûºÅÀàÐͱäÁ¿»òº¯Êý;ÉùÃ÷ÎÞ·ûºÅÀàÐͱäÁ¿»òº¯Êý.


(42)static
ÉùÃ÷¾²Ì¬±äÁ¿.When modifying a variable, the static keyword specifies that the variable has static durationinitializes it to 0 unless another value is specified.


(43)struct
ÉùÃ÷½á¹¹Ìå±äÁ¿»òº¯Êý.struct ÀàÐÍÊÇÒ»ÖÖÖµÀàÐÍ£¬Í¨³£ÓÃÀ´·âװСÐÍÏà¹Ø±äÁ¿×é.


(44)switch
Allows selection among multiple sections of code, depending on the value of an integral expression.


(45)template
Ä£°å.The template declaration specifies a set of parameterized classes or functions.


(46)this
The this pointer is a pointer accessible only within the nonstatic member functions of a class, struct, or union type.


(47)typedef
ÓÃÒÔ¸øÊý¾ÝÀàÐÍÈ¡±ðÃû.Introduces a name that, within its scope, becomes a synonym for the typ

Ê×Ò³ ÉÏÒ»Ò³ 1 2 3 ÏÂÒ»Ò³ βҳ 2/3/3
¡¾´ó ÖРС¡¿¡¾´òÓ¡¡¿ ¡¾·±Ìå¡¿¡¾Í¶¸å¡¿¡¾Êղء¿ ¡¾ÍƼö¡¿¡¾¾Ù±¨¡¿¡¾ÆÀÂÛ¡¿ ¡¾¹Ø±Õ¡¿ ¡¾·µ»Ø¶¥²¿¡¿
ÉÏһƪ£ºÃæÏò¶ÔÏó³ÌÐòÉè¼ÆÓë½á¹¹»¯³ÌÐòÉè.. ÏÂһƪ£ºÊ²Ã´ÊǹþÏ£±í£¿

×îÐÂÎÄÕÂ

ÈÈÃÅÎÄÕÂ

Hot ÎÄÕÂ

Python

C ÓïÑÔ

C++»ù´¡

´óÊý¾Ý»ù´¡

linux±à³Ì»ù´¡

C/C++ÃæÊÔÌâÄ¿