What Is Megacolon?
The colon is one of the commonly used punctuation marks in the text. English half-width characters are ":"; English full-width characters are ":"; Chinese full-width characters are ":"; Chinese half-width characters are ":".
- The colon is a punctuation mark. Usually indicates
- Is used after the address to indicate the following. Such as: "Comrades: now we drive
- First, for
- There are no colons in ancient Chinese sentence reading symbols. The colon, form and usage of the current punctuation marks are imported from the West, and the names are ideographic, which is original. The word "boo" means "hidden" and "universal". For example, "head", "head" refers to the beginning of an article, discourse, or introduction. "First said a big head, then introduced the ontology",
- Pay attention to the prompt range when using the colon. Use a period at the end of the contents of the colon prompt. If the content before a period is not all prompted by a colon, the colon is used incorrectly. E.g:
- This amazing fact proves that if people keep thinking about money and cannot see the enemy's corrupted offense, they will go astray, which shows that these facts can be used as living textbooks.
- (The colon in the sentence only indicates "misleading", not including the following, so it is used incorrectly. The comma after "misleading" should be changed to a period.)
- Don't use a colon without special notice. Such as:
- He said: Be sure to come to the meeting. (Colon should be deleted)
- The results of the game were unexpected: the old team beat the youth team. (The colon should be changed to a comma)
- You cannot use colons inside sentences. Such as:
- The teacher said, "After class!" (The colon cannot be used in the sentence, it should be deleted.)
- "So-and-so said", "So-and-so thought", etc. are often followed by colons. But sometimes you don't want to emphasize the prompt words or quote others directly, instead of using colons and commas. If "So and so said" is at all
- Usage in english
- The colon is used to introduce or explain the following content, such as This is her plan: go shopping.
- The colon is used before a list, especially a vertical list.
- We transferred three employees to new branches:
- Tony Wang to New York City
- Mike Jackson to Tokyo
- Mark Foster to Paris
- When the list is horizontal, the colon should be used after a complete sentence, such as We need seven people: three students, three engineers, and a professor.
- The colon is used before a formal reference. As The professor said: "It was horrible."
- The colon can also be used after the title of a business or formal letter, such as Dear Mr. Lee: (In American English, the letter or address is followed by a colon, and in British English, a comma is used.)
- The colon is used to represent digital time, such as 16:45 or 4:45 pm
- A colon is used between the main heading and subheading, such as Web Directory: World and Non-US Economic Data
- Usage in C ++
- 1. Single colon (:) usage
- indicates the definition of the bit field in the organization (that is, the variable occupies several bit spaces)
- typedef struct
- unsigned char
- unsigned char
- The colon after the constructor function is used for division. It is a method for class to assign values to member variables and initialize lists. It is more suitable for the constant type of member variables.
- ( 3) The colon after public: and private: indicates that all members defined later are public or private until the next "public:" or "private:" appears. "private:" is handled by default.
- The class name is followed by a colon to define class inheritance.
- class derived class name: inheritance base class name
- Derived class
- Inheritance: public, private, and protected. The default processing is public.
- 2. Double colon (: :) usage
- means "domain operator"
- Example: A class A is declared, and a member function void f () is declared in class A, but the definition of f is not given in the class declaration. When f is defined outside the class,
- It is written as void A :: f (), which means that the f () function is a member function of class A.
- Used directly before the global function, which means it is a global function
- Example: In VC, you can add API before the API function name when calling API function:
- means referencing member functions and variables, scope member operators
- Example: System :: Math :: Sqrt () is equivalent to System.Math.Sqrt ()
- (4) Usage in batch processing:
- The ":" in a batch is called a label and is usually on its own line. The label line starts with ":" and immediately follows the identifier. The valid length of the identifier is 8 characters.