struct
struct — 名詞
1. a shortened written form of the word 'structure', used especially in computer pr
結構
structure 縮寫,程式資料群
a shortened written form of the word 'structure', used especially in computer programming to name a group of related pieces of information stored together — for example, a struct containing a person's name, age, and address; also used informally in notes or messages to mean a plan, system, or organization.
The C program uses a struct to store each student's name, ID, and final grade.
這個 C 程式用一個 struct 來儲存每位學生的姓名、學號和最後成績。
struct to store multiple data fields
Quinn created a struct called 'Book' with fields for the title and the author.
Quinn 建立了一個名為 Book 的 struct,裡面包含書名和作者的欄位。
struct definition: struct called [Name]
Please send me the org struct for the new department before Friday.
請在星期五前把新部門的組織結構圖(org struct)寄給我。
Yuki wrote a struct that stores the x and y coordinates for each map point.
Yuki 寫了一個 struct,用來存放地圖上每個點的 x 和 y 座標。
The struct in the database groups a customer's name, phone number, and email address.
資料庫中的這個 struct 將客戶的姓名、電話號碼和電子郵件地址歸成一組。
文法句型
[countable] struct + for + [data_group]
written abbreviation in notes
用法筆記
Always written in lowercase in code. In formal academic or business writing, use the full word 'structure' instead of the abbreviation.