2014-01-20 2 views
0
struct movies_t { 
    string title; 
    int year; 
} films [3]; 

: http://www.cplusplus.com/doc/tutorial/structures/C++ 데이터 구조를 선언이 튜토리얼

I 올바르게 필름을 이해하는 경우에는 형 movies_t 네 데이터 구조의 어레이를 선언한다. 그게 맞습니까? 아니면 이것에 뭔가가 있습니까?

감사합니다 ...

+1

12.이 올 것 같다 인덱스 0, 규모 3을 보내고, 오직 세 가지 요소가 아닌 네 가지가 있습니다. – iavr

+0

3 개의 데이터 구조입니다. – Dannie

답변

1
If I understand correctly films is the declaration of an array of four data structures of the type movies_t. 

아니. 그것은

films [0] 
films [1] 
films [2] 
+0

고맙습니다. – Giuseppe

관련 문제