ؼ(35):
import  cdecl  stdcall  fastcall pascal operator for while do try catch if break continue
default  interface  class  package  static  const  throw  switch  case  else return  new
include using  require finally final synchronized_read  synchronized_write synchronized
@Declare override


ע
ڽ˵֡עͣ//עͣ/*   */ĵעͣ/**  */


հַͿ
пհַԼ(""˫Ű)Ĳ, ڱж.


ʶ
1˵ʶԱʶӿ,  
2

1ʶɣ֣ĸ»ߺ͹ɣŲ

2ĸ»߿ͷֿͷ

3ؼֲΪʶ

4ʶִСд

5ʶûг





ĸԣͣ洢Ԫͱֵ

1Ϸıʶ

2ͣǻ, ͣͣ,ͱ[]ű, []ű֮, ֮ǰ.

3洢Ԫ洢ԪС;ģ磺intΪ4ֽ32λ

4ֵڴ洢ԪзŵľǱֵǻͷŵľǾֵͷŵڴַnilptrʾָκζ

5ʽ     = ֵ, ͬʱ,֮[,]ָ(),  int a , b, c

6ʱ鳤, 
	: 
	Ϸ:	int[ ] a;  
	Ϸ:	int [3] a;   int  a[ ]; 	int a[3]  
	



1˵ڳִеĹֵԷı䡣

2ࣺԶ峣

32ֱʽʮơʮơ



1Ϸıʶ

2Աη static , final,  ǳԱЧ
	static Ǿ̬, ʹǰҪʵ
	final ֻԷstaticĳԱЧ, ÷ɱд

3voidķз. void͵ķreturn

4βαȷͺ

5䳤Object[] ʾ, ԶĲװObject鴫

6󷽷
	δ巽Ϊ󷽷.
	󷽷:
	ֵ (ʽ1  1,ʽ2  2,ʽ3  3......);

ṹ
η ֵ (ʽ1  1,ʽ2  2,ʽ3  3......)
{

;

return  ֵ;
}




1Ϸıʶ

2η
	static Ǿ̬, ʹǰҪʵ,  ǳԱʹЧ
	final ÷ɱ̳

3
	Ϳⲻfinal޶, Լģ

4Ա
	δʵ֮ǰ޷ʹ.
 	ԱʹĳԱͶ(staticֻʹstatic),  ָΪ ClassName.this.


6ģ.
	ģжģ,ģ, ԤõPOD, ģԱʹģ.
	ģ֮ͨԻ̳, ģûȷ֮ǰᱻ

7.
	new, ұָಢдĶ. 
	಻ɱ̳
	ʹڵĶ(հ)
	
8Ա
	
	
	
	
	native

9Ա
	еԱΪ麯඼д, finalstaticεķ
	Ǿ̬Աʹoverrideǿд,Ҳпصķ,յʾ
	Աڴ麯, ʵ֮ǰ뱻д
	ڴ麯಻ɱʵ
	ԱΪ㷨ķ
	ֱ֧صĲ:
		+              ʽ: 	 operator + ( )
		- 	ʽ: 	 operator - ( )
		/ 	ʽ 	 operator / ( )
		* 	ʽ 	 operator * ( )
		+= 	ʽ 	 operator += ( )
		-= 	ʽ 	 operator -= ( )
		*= 	ʽ 	 operator *= ( )
		/= 	ʽ 	 operator /= ( )
		== 	ʽ 	 operator == ( )
		!= 	ʽ 	 operator != ( )
		>> 	ʽ 	 operator >> ( )
		<< 	ʽ 	 operator << ( )
		< 	ʽ 	 operator < ( )
		> 	ʽ 	 operator > ( )
		<= 	ʽ 	 operator <= ( )
		>= 	ʽ 	 operator >= ( )
		<<= 	ʽ 	 operator <<= ( )
		>>= 	ʽ 	 operator >>= ( )
		&	ʽ 	 operator & ( )
		 | 	ʽ 	 operator | ( )
		^ 	ʽ 	 operator ^ ( )
		~ 	ʽ 	 operator ~ ( )
		&=	ʽ 	 operator &= ( )
		 |= 	ʽ 	 operator |= ( )
		^= 	ʽ 	 operator ^= ( )
		++	ʽ 	ǰ :   operator ++ ()
				 :	  operator ++ (int)
		--	ʽ 	ǰԼ :   operator -- ()
				Լ :	  operator -- (int)
	ȼͬѧȼ


10๹
	ûʽĬϹ췽, Ϊ䴴һĬϹ췽
	вι췽ûʽĬϹ췽, ཫĬϹ췽
	๹췽ʽû๹췽ʹsuper(args), Ҹô๹췽ǰ, ҽܵһ.
	๹췽(Ƿв)ûʽû๹콫ʽûĬϹ췽.
	ĬϹ캯,ҸΪʱ,๹ʱ๹ֱӵûĻĬϹ췽.
	๹˳ΪȻ, 

11ĳʼ
	Աʵ֮ ,֮ǰȫʼ, 
	ָ˳ʼֵıװֵ
	ûָʼֵıʼ:
		1).ֵͽʼΪ0
		2).bool ͽʼΪfalse
		3).StringͽʼΪnilptr

12
	ʽ: void finalize(){

		}

	֮ǰfinalizeʵʩǰ
	ٲڸκõ²ʱ

13ļ̳
	һֻ̳һ߽ӿ, ؼ̳


14Ķʽ
	ͨ:
	class  {  		};
	class   : {  		};
	class  <ģ1,ģ2....> : {  		};



ӿ(interface):
	ӿڿԼ̳һӿڻ

	ӿڵĳԱΪ:
		1.鷽	
		2.
		3.ӿ

	ӿ޷ʵ.

	ʽ:
	interface ʶ{
		󷽷1;
		󷽷2;
		󷽷3;
	};


:
	1Ϸıʶ


	1:
		1.
		2.
		3.ӿ

	3ʽ:
		package ʶ{
			;
			;
			ӿ;
		};
	1ʹ:
		ȫλ ʹusing﷨;
		ʹ .Ա ʽ﷨.


native:
	nativeñ׼Cӿڵ

	native:
		1з
			ֻ
			void
			byte
			char
			int
			long
			bool
			double
			String

		2Լ,֧µԼ
			stdcall
			cdecl
			fastcall
			pascal

		3βαȷ, β
			ֻ
			void
			byte
			char
			int
			long
			bool
			double
			String
			ObjectPtr
		
		3native32

	ʽ:
	import "xxx.dll"{
		void stdcall MessageBoxA(int hWnd,String msg, String caption, int flag);
	};
	
	
using ﷨
	ȫַΧʹusing Ҫʹõİ,ɼʹðʱ.
	һusing	
	:
	using { a; b; };

new 
	new Դ
	
	newĶΪ, ģ,ûг󷽷

	newʱ鳤


include ﷨
	Դļ뵽includeλ
	һincludeԴļ
	ÿһincludeЧļ
	:
		include("a.xcsm", "b.xcsm");
	

require ﷨
	Դļ뵽includeλ
	һincludeԴļ
	requireļ޷requireڶ,һα,ദrequireͬһļ,ֻһЧ,require󽫱
	:
		require("a.xcsm", "b.xcsm");


@Declare:
	@Declare Էpackage ֮ǰ, class֮ǰ, interface֮ǰԱʶö, 
	@DeclareεĶ󲻻ʹ,﷨.


ṹ쳣:
	1.һṹ쳣~catch .
	2.һṹ쳣ֻ԰0~1finally
	3.finallyṹеreturn佫յ.
	4.ṹ쳣Ƕʱ,ǰ쳣ȵõcatch
	5.catchֻһ
	6.catchĲͱ̳Exception
	7.쳣catchе͵, ᱻcatch䲶

if
	1.ifж϶ͱΪbool
	2.ifʹ{ }Զ
	3.ifʹ{ },һ
	
while
	1.whileж϶ͱΪbool
	2.whileʹ{ }Զ
	3.whileʹ{ },һ

do while
	1.whileж϶ͱΪbool
	2.doʹ{ }Զ
	3.doʹ{ },һ

switch case
	switchʹκ
	ڷpod͵ĶȽָ
	caseûbreak ,breakת

ͬ﷨:
	synchronized  ߳ͬ
		synchronized̻߳

	synchronized_read
		synchronized_readöӦsynchronized_write以

	synchronized_write
		synchronized_readöӦκβ


ȫַΧڿʹõ﷨:
		1.巽
		2.using
		3.include
		4.reqiure
		5.native
		6.
		7.
		8.
		9.ӿ
		10.ѧʽ
		11.÷
		12.new
		
	

ͬѡȼ:
	1.ջ
	2.Ա
	3.Ѻ


ȼ:


-------------------------------------------------------------------------------------------------------------
ȼ 								Ϸ
-------------------------------------------------------------------------------------------------------------
1		()		ȼŲ		
		[]		±ʲ
		new{}/[]		/			ҵ
		.		ʳԱĲ			
		++		
		--		Լ
-------------------------------------------------------------------------------------------------------------
2		!		߼ȡ			ҵ
		~		λȡ
		++		ǰ
		--		ǰԼ
		-		һԪȡ
-------------------------------------------------------------------------------------------------------------
3		*		˷			
		/		
		%		ȡ
-------------------------------------------------------------------------------------------------------------
4		+		ӷ			
		-		
-------------------------------------------------------------------------------------------------------------
5		<<		λƲ			
		>>		λƲ
-------------------------------------------------------------------------------------------------------------
6		<		СڱȽϲ			
		<=		СڻڱȽϲ
		>		ڱȽϲ
		>=		ڻڱȽϲ

-------------------------------------------------------------------------------------------------------------
7		==		ڱȽϲ			
		!=		ڱȽϲ
-------------------------------------------------------------------------------------------------------------
8		&		λ			
-------------------------------------------------------------------------------------------------------------
9		^		λ			
-------------------------------------------------------------------------------------------------------------
10		|		λ			
-------------------------------------------------------------------------------------------------------------
11		&&		߼			
-------------------------------------------------------------------------------------------------------------
12		||		߼			
-------------------------------------------------------------------------------------------------------------
13		? :		Ԫ			ҵ
-------------------------------------------------------------------------------------------------------------
14		=		ֵ			ҵ
		+=		ϸֵ(ӷ)
		-=		ϸֵ()
		*=		ϸֵ(˷)
		/=		ϸֵ()
		%=		ϸֵ(ȡ)
		&=		ϸֵ(λ)
		^=		ϸֵ(λ)
		|=		ϸֵ(λ)
		<<=		ϸֵ(λ)
		>>=		ϸֵ(λ)
-------------------------------------------------------------------------------------------------------------
