18.1 Struct declarations

原创 2006年05月25日 05:40:00
A struct-declaration is a type-declaration (§16.5) that declares a new
struct:
struct-declaration:
attributesopt struct-modifiersopt struct identifier struct-interfacesopt
struct-body ;opt
A struct-declaration consists of an optional set of attributes (§24),
followed by an optional set of structmodifiers
(§18.1.1), followed by the keyword struct and an identifier that names the
struct, followed by an
optional struct-interfaces specification (§18.1.2), followed by a
struct-body (§18.1.3), optionally followed
by a semicolon.
18.1.1 Struct modifiers
A struct-declaration may optionally include a sequence of struct modifiers:
struct-modifiers:
struct-modifier
struct-modifiers struct-modifier
struct-modifier:
new
public
protected
internal
private
It is a compile-time error for the same modifier to appear multiple times
in a struct declaration.
The modifiers of a struct declaration have the same meaning as those of a
class declaration (§17.1.1).
18.1.2 Struct interfaces
A struct declaration may include a struct-interfaces specification, in
which case the struct is said to
implement the given interface types.
struct-interfaces:
: interface-type-list
C# LANGUAGE SPECIFICATION
268
Interface implementations are discussed further in §20.4.
18.1.3 Struct body
The struct-body of a struct defines the members of the struct.
struct-body:
{ struct-member-declarationsopt }
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Winhex.18.1.SR1.x86

  • 2015-03-05 14:19
  • 2.59MB
  • 下载

安装的第一个Linux系统 -Linux Mint 18.1 cinnamon

工作生活一直用得比较多的电脑系统是windows.从win95一直到win10,都玩腻了.而且对于我这些正在学习编程的新手来说,windows的开发环境不是太友好 Mac OS当然比windows好....

18.1

18周任务1 (2011-12-22 17:51:14)[编辑][删除] 转载▼ 标签: 杂谈   实验目的:学会指针访问字符数组 实验内容:...

【笔记】 《js权威指南》- 第18章 脚本化HTTP - 18.1 使用XHR(2)

Java编程思想18.1 - 字节流和字符流

本篇主要讲Java IO的字节流和字符流,章节安排如下: 1. 起步:File类 2. 字节流和字符流概述 3. 装饰者模式(Decorator)和适配者模式(Adapter) 4. 基于字...

IBM SPSS Modeler 18.1最新版本正式发布 | 附下载

IBM 数据挖掘分析平台IBM SPSS Modeler在市场上一直占据领导者地位,其专业性及易用性一直受到广大用户的喜爱,该平台也不负众望,我们的研发团队一直致力于不断的技术更新及功能的提升,最新版...

erlang 18.1 安装包

  • 2017-01-23 09:54
  • 17.47MB
  • 下载

Maipu路由器技术手册V18.1pdf

  • 2013-08-29 15:26
  • 10.22MB
  • 下载
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)