struct

struct — 名詞

1. a shortened written form of the word 'structure', used especially in computer pr

1.名詞B2
釋義

結構

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]

文法句型

[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.

常見錯誤

I revised the struct of my essay three times.
I revised the structure of my essay three times.
💡In formal or academic writing, use the full word 'structure' rather than the abbreviation.