搜尋此網誌

2025年3月31日星期一

Identifiers

In C++, identifiers are the names used to identify variables, functions, arrays, or other user-defined elements.

Identifiers in C++ are case-sensitive.

Identifiers cannot begin with a number.

Microsoft Copilot

2025年3月30日星期日

Difference

In C++, expression produce a value.

Statements perform actions.

Each statement in C++ ends with a semicolon.

For example:

int a = 3; // A statement that assigns the result of an expression (3) to 'a'.

int b = (a + 2); // A statement containing an expression (a + 2).

Microsoft Copilot

2025年3月29日星期六

信任與合作

entail: to involve something that cannot be avoided

disciple: a person who believes in and follows the teachings of a religious or political leader

commission (v): to officially ask somebody to write, make or create something or to do a task for you

commission (n): an official group of people who have been given responsibility to control something, or to find out about something, usually for the government

commitment: a promise to do something or to behave in a particular way; a promise to support somebody/something

manipulative: showing skill at influencing somebody or forcing somebody to do what you want, often in an unfair way

viable:  that can be done; that will be successful

When trust and the level of cooperation are high, synergistic communication is enhanced.

如果我們彼此之間建立了充分的信任,而大家願意積極合作,那麼我們之間的溝通就會變得更有效率以至產生協同效應。換句話說,高度的信任和合作能夠使溝通過程中各自的想法和能量互相疊加,從而產生遠超過各自單獨運作的效果。

在這種狀態下,訊息交流不只是簡單地傳遞訊息,而是一種一加一大於二的互動效果。例如在一個團隊中,當成員彼此信任、彼此支持時,他們更容易分享真實的想法和訊息,並且能夠從彼此的意見中獲得啟發,促使整個團隊解決問題、創新思維,達到更好的整體效果。

Stephen R. Covey "The 7 Habits of Highly Effective People"

Online Dictionaries Used:

hk.dictionary.search.yahoo.com

www.oxfordlearnersdictionaries.com

Explained by Microsoft Copilot and edited

2025年3月28日星期五

長和賣港口 | 計劃暫緩 下周不會簽署交易

【Yahoo 新聞報道】長和擬出售巴拿馬港口,將會暫緩。有關交易計劃近日引起中方不滿,原訂四月二日前簽訂港口權益最終協議,《Yahoo新聞》接獲長和高層消息人士透露,下周不會簽署交易文件。被問到是否與近日政治因素有關,消息人士僅透露︰「大家明啦!」

港澳辦、中聯辦曾四度轉載文章批評交易

據報中國曾要求國有企業暫停與李嘉誠家族合作

昨日《南華早報》引述消息指,長和正與港府尋求「合理的解決方案」,不過方案選擇有限︰如果長和停止交易會面臨高昂代價,而且帶來嚴重的政治影響;如果繼續推進交易,則對公司和國家都會構成損失。

另一方面,《彭博》昨天亦引述消息指,中國已要求國有企業,暫停與李嘉誠家族展開任何新合作。報道指,該項命令是在上周由中國高層官員發出,而現有的合作關係則不受影響。根據指令,國有企業與李嘉誠相關的商業活動不會立即獲批,監管機構亦正審查李嘉誠家族在中國和海外的投資,以了解其商業活動範圍。

2025年3月27日星期四

大師的初衷

magnificence: the quality of being extremely attractive and impressive

authentic: true and accurate

piggyback: to set up or cause to function in conjunction with something larger, more important, or already in existence or operation

worthwhile: worth spending time, money or effort on

engrave: to cut words or designs on wood, stone, metal, etc.

trepidation: great worry or fear about something unpleasant that may happen

obsolete: no longer used because something new has been invented

transcend: to be or go beyond the usual limits of something

Often attempts are made to recreate a particular synergistic experience, but this seldom can be done. However, the essential purpose behind creative work can be recaptured. Like the Far Eastern philosophy, "We seek not to imitate the masters, rather we seek what they sought," we seek not to imitate past creative synergistic experiences; rather we seek new ones around new and different and sometimes higher purposes.

人們常常試圖再創造某種特定的協同體驗,但這種嘗試很少能夠成功。然而,我們始終可以找回創造背後的核心意義。正如東方哲學所言:「我們不在於模仿大師,而在於追尋他們當初追求的東西。」因此,我們不需要再模仿過去的協同創造經驗,而是應圍繞著全新、不同,甚至更高的目標。

Stephen R. Covey "The 7 Habits of Highly Effective People"

Online Dictionaries Used:

hk.dictionary.search.yahoo.com

www.oxfordlearnersdictionaries.com

www.merriam-webster.com

Translated by Microsoft Copilot and edited

2025年3月26日星期三

Sth about Function

In C++,  void is a special return type used in functions that do not return a value. When a function is declared with a void return type, it means the function performs an action but does not give back any data to the caller.

A parameter is a variable defined in a function's declaration or definition. It acts as a placeholder that specifies what type and how many inputs a function expects. Parameters exist only within the scope of the function.

An argument is the actual value or expression provided to a function when it is called. Arguments are passed to the function and used in place of the corresponding parameters.

Microsoft Copilot

2025年3月25日星期二

C and C++

In C++, the <cstdio> header provides support for input and output operations using C-style functions.

#include <cstdio>

printf("Hello, World! Number: %d\n", 42);  // Prints: Hello, World! Number: 42

The functions rely heavily on format specifiers (e.g., %d for integers, %s for strings), which can lead to bugs if not used carefully.

For modern C++ development, prefer <iostream> over <cstdio> for safety and maintainability.

When the main function in C++ completes, it returns an integer value to the operating system. If you include return 0; at the end of the main function, it signifies successful execution.

In C language, \n is a special escape sequence that represents a newline character.

In C++ language, an argument is a value or variable that you pass to a function when you call it. Arguments act as input data that the function uses to perform its operations.

In C++, char* is a pointer to a char type, and it is used to represent a character array or C-style string. 

In C++, argc is a parameter of the main function that stands for "argument count." It represents the number of command-line arguments passed to the program when it is executed.

Microsoft Copilot