i encounterd the following code in the c++ toutorial about data structures, but shouldnt void printmovie (movies_t movie); be void printmovie (movies_t movie[]);
since it takes an array as an arguement?
// array of structures
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
#define N_MOVIES 3
struct movies_t {
string title;
int year;
} films [N_MOVIES];