0
struct movies_t {
string title;
int year;
} films [3];
从这个教程: http://www.cplusplus.com/doc/tutorial/structures/C++数据结构声明
如果我理解正确膜是类型movies_t的四个数据结构的数组的声明。这是正确的还是有其他的东西呢?
谢谢...
struct movies_t {
string title;
int year;
} films [3];
从这个教程: http://www.cplusplus.com/doc/tutorial/structures/C++数据结构声明
如果我理解正确膜是类型movies_t的四个数据结构的数组的声明。这是正确的还是有其他的东西呢?
谢谢...
If I understand correctly films is the declaration of an array of four data structures of the type movies_t.
都能跟得上。它具有尺寸为3
与指数0
,1
和2.
films [0]
films [1]
films [2]
谢谢你。 – Giuseppe
似乎是正确的,只是有三个要素,而不是四个。 – iavr
它是3个数据结构。 – Dannie