C 基礎 002常用關鍵字

2021-08-07 05:01:18 字數 1472 閱讀 9933

//c#常用的關鍵字

/* * abstract 抽象

* as 像  

* base 基礎  

* bool 布林  

* break 中斷 

* byte 位元組  

* case 案例

* catch 捕捉  

* char 字元  

* checked 檢查 

* class 類  

* const 常數

* continue 繼續 

* decimal 表示金額的浮點型別

* default 預設 

* delegate 委託 

* do 做  

* double 雙精度 

* else 否則  

* enum 列舉  

* event 事件

* extern 額外的

* false 錯誤的

* finally 最後的

* float 單精度的浮點 

* for 迴圈

* foreach 迴圈每乙個

* goto 跳轉  

* if 如果  

* in 在…裡面  

* int 整數

* inte***ce 介面 

* internal 內部的

* is 是   

* lock 鎖 

* long 長整型  

* namespace 命名空間 

* new 新的,隱藏  

* null 空  

* object 物體,物件

* operator 操作符

* out 出來  

* override 重寫 

* params 引數 

* private 私有 

* protected受保護的 

* public 公開的

* readonly 唯讀的 

* ref 引用  

* return 返回 

* sbyte 位元組  

* sealed 密封 

* short 短整型  

* static 靜態的

* string 字串

* struct 結構

* switch 開關 

* this 這個,本身  

* throw 丟擲

* true 正確的  

* try 嘗試  

* typeof 型別 

* uint 整型  

* ulong 整型 

* ushort 短整型  

* using 使用 

* virtual 虛擬的 

* void 空  

* while 當

*/

C 常用關鍵字

abstract 抽象 as 像 base 基礎 bool 布林 break 中斷 byte 位元組 case 案例 catch 捕捉 char 字元 checked 檢查 class 類 const 常數 continue 繼續 decimal 表示金額的浮點型別 default 預設 deleg...

常用關鍵字

1 typeof關鍵字 作用 返回用字串形式返回物件的型別,例如trace typeof 10 輸出number 注意 返回的字串不一定是類名的小寫,下面是typeof物件型別和返回結果對照表 intnumber uint number number number array object bool...

C 基礎 static關鍵字

下面分兩個部介紹static關鍵字的使用 1 普通變數和成員函式 2 類中的作用 include using namespace std void fun static int n int main void fun 輸出 20 21注意 include include fun.h using na...