const
const — 名詞
1. a written abbreviation for 'constant', used in computing to label a value or var
const
程式中不變的值或變數
a written abbreviation for 'constant', used in computing to label a value or variable that the programmer does not intend to change while a program runs.
Haruto declared a const variable for the sales tax rate in the code.
Haruto 在程式碼中用 const 宣告了銷售稅率的變數。
const + variable/noun for a fixed value in code
Using const helps other programmers see which values should stay the same.
使用 const 能讓其他程式設計師看出哪些數值不該被更改。
The team lead asked Wei to mark all unchanging settings with const.
團隊組長請 Wei 把所有不變的設定加上 const。
A bug appeared because someone changed a const value during the loop.
因為有人在迴圈中更改了 const 的值,導致程式出現錯誤。
- variable
a value that can change; var or let in many languages
用法筆記
In many programming languages such as C++, JavaScript, and Rust, 'const' is a keyword written in lowercase. It is typically placed before a variable declaration to signal that the variable's value cannot be reassigned after initial assignment.
常見錯誤
2. a written abbreviation for 'constitution' or 'constitutional', used in legal wri
憲法
憲法或憲法的縮寫
a written abbreviation for 'constitution' or 'constitutional', used in legal writing and official documents to refer to a country or state's founding legal document.
The judge referred to Article V of the U.S. Const. during the hearing.
法官在庭訊中提到了美國憲法第五條。
Const. with period + Article [number] + of
Gabriela found the relevant clause in the state const. after searching for an hour.
Gabriela 花了一個小時查找,終於在州憲法中找到相關條文。
The professor asked the class to read the Const. of Japan before the next seminar.
教授要求全班在下週研討會之前先讀過日本憲法。
A change to the const. requires approval from two-thirds of the legislature.
修改憲法需要獲得立法機構三分之二議員的支持。
用法筆記
When written with an initial capital letter and a period (Const.), it almost always refers to a specific constitution. Used informally within legal case citations and academic footnotes.
3. a written abbreviation for 'construction', used in project plans, signs, and eng
施工;建築
建築或工程項目的縮寫
a written abbreviation for 'construction', used in project plans, signs, and engineering documents to refer to the process of building or assembling something.
The const. of the new hospital wing is scheduled to finish in March.
新醫院大樓的施工預計在三月完工。
const. of + [building/infrastructure project]
Ravindra checked the const. schedule before ordering the steel beams.
Ravindra 在訂購鋼樑之前先查看了施工進度表。
A bright orange sign near the site read 'Under Const. — Stay Clear.'
工地附近有一塊亮橘色的告示牌寫著「施工中——請勿靠近」。
Delays in const. pushed the opening of the bridge back by six weeks.
施工延誤導致大橋的開放時間往後推遲了六週。
用法筆記
Common on roadside signs ('Under Const.'), in architectural blueprints, and in civil engineering reports. The full form 'construction' is more common in everyday writing.
4. a written abbreviation for 'constant', used in mathematics and science to refer
常數
數學或科學中不變的量
a written abbreviation for 'constant', used in mathematics and science to refer to a quantity or number that remains the same across all situations or calculations.
The speed of light is a well-known const. in physics equations.
光速是物理公式中一個著名的常數。
const. as a label for a mathematical/scientific invariant
Aylin wrote the value of const. π on the board for the geometry class.
Aylin 在幾何課上把常數 π 的值寫在黑板上。
Students often forget that this const. appears twice in the same formula.
學生經常忘記這個常數在同一個公式中出現了兩次。
The research paper listed each const. in a table before the experiment began.
研究論文在實驗開始前先用表格列出了每個常數。
- invariant
more formal; used in advanced mathematics and computer science
- variable
a quantity that can change in an equation or experiment
用法筆記
Used in textbooks, scientific papers, and mathematical proofs to save space. Unlike the programming sense (const keyword), this sense always refers to the underlying invariant value itself, not to a language keyword.