韓語口譯

struct Node
{
   int no;
   char Name[20];
};

(2).幫這個 struct Node  起了一個體名 叫NewNode

OK,如許問題的前半段清楚了,但 別號後面 接了個    , CSTree;  又是什麼意思呢??

//下面的程式碼代表了什麼呢??

3. typedef struct 用法

 

//  界說一個已知資料型態的別號,也就是說可以用這個名稱取代設定的資料型態 

4.界說別號後,宣告一個變數示意此別號佈局

2.struct 的用法

5.延長題目

起首,先來分析  

typedef struct CSNode{
   TElemType data;
   struct CSNode *firstchild翻譯社*rightsib;
}MyNode , CSTree;

所以就搜尋了一下這要怎麼註釋呢??

 

typedef int NewINT; //  幫 int起了一個別名,叫做NewINT

OK,下一名

typedef struct 
{
   int no;
   int tel;
} Mytel翻譯社 MyPhone;

//宣佈了MyPhone變數,其默示一個體名 Mytel的構造

typedef struct CSNode
{
 TElemType data;
 struct CSNode *firstchild,*rightsib;
} MyNode , CSTree; //宣告了一個CSTree變數,其是一個 CSNode 構造,別號是 MyNode;

可以分化成下列的程式碼

1.typedef 的用法

溫習資料佈局時,遇到一個C說話宣佈以下:

typedef struct Node {...} NewNode;

所以就是  定義一個Node構造而且給了它一個等義的別號NewNode

 

(1). 界說了一個Node的構造

struct CSNode 
{
   TElemType data;
   struct CSNode *firstchild,*rightsib;
}; //界說CSNode佈局

typedef struct CSNode MyNode //界說了struct CSNode 的別號 MyNode;

MyNode CSTree; //宣佈一個名叫CSTree的MyNode變數

本題的意義就是宣佈了一個CSTree變數,其是一個 CSNode 結構,別名是 MyNode;

//用來自定佈局的語法
struct Node
{
   int no;
   char Name[20]
};  //界說了一個 Node結構(內含一個int資料型態的no變數及char陣列的Name)

OK,根基的用法如上所示,現在來點混搭風

typedef struct Node
{
   int no;
   char Name[20];
} NewNode;

其實可以分成兩個區塊來看



文章來自: http://groangao.pixnet.net/blog/post/24474489-%5bc%2cc%2b%2b%5d-typedef-struct-%e7%94%a8%e6%b3%95%e8有關各國語文翻譯公證的問題歡迎諮詢天成翻譯公司02-77260931

arrow
arrow
    文章標籤
    翻譯社
    全站熱搜