枚舉聲明 的英文怎麼說
中文拼音 [méijǔshēngmíng]
枚舉聲明
英文
enum declarations-
Discusses changes in the declaration and behavior of enums
討論枚舉的聲明和行為中的更改。The named values of an enumeration type are declared as
將枚舉類型的指名值聲明為枚舉的If a class or enumeration name and an object, function, or enumerator are declared in the same scope ( in any order ) with the same name, the class or enumeration name is hidden wherever the object, function, or enumerator name is visible
如果某類或枚舉名字和一個對象,函數,或枚舉符在相同作用域(以任意順序)聲明為相同名字,則一旦對象,函數,或枚舉符的名字可見時,類或枚舉的名字就被隱藏。The first enumeration value in the enumeration declaration is set to 0
將枚舉聲明中的第一個枚舉值設置為0 。The partial modifier is not available on delegate or enumeration declarations
分部修飾符不可用於委託或枚舉聲明中。Any code that can access the element that declares it can access it
可以訪問聲明此枚舉的元素的任何代碼。You can declare the underlying type of an enumeration to be any integral data type
可以將枚舉的基礎類型聲明為任何整型數據類型(A type declaration for a class, struct or enumeration
類、結構或枚舉的類型聲明。Thomas edison, an undeniable genius, invented the phonograph, the light bulb, the motion picture camera, and dozens of other devices that shape our world today
愛迪生無疑是個天才,他的發明包括有留聲機、燈泡、電影攝影機等等,不勝枚舉,給這世界塑造了當今的面貌。A variable of an enumerated type can hold values outside the range of declared values
枚舉類型的變量可以接受聲明值范圍之外的值。Declaration introduces a new enumerated data type into the program
聲明在程序中引入新的枚舉數據類型。Enum type sample declare a enumeration type
>枚舉類型示例(聲明枚舉類型)For example, you can declare an enumeration for a set of integer constants associated with the days of the week, and then use the names of the days rather than their integer values in your code
例如,可以為一組與一周中的七天相對應的整數常數聲明一個枚舉,然後在代碼中使用這七天的名稱而不是它們的整數值。It is used to declare a user - defined enumeration, which consists of a set of named constants called the enumerator list
它用於聲明用戶定義的枚舉,這種枚舉由一組命名常數(稱為「枚舉數列表」 )組成。Keyword is used to declare an enumeration, a distinct type consisting of a set of named constants called the enumerator list
關鍵字用於聲明枚舉,即一種由一組稱為枚舉數列表的命名常數組成的獨特類型。分享友人