Ciao ragazzi, ho visto delle strutture in C++ utilizzate nella seguente maniera :
codice:struct c4game { int nr; int nc; int free; matrix grid; bool init(int,int); bool put(int,int); int check(); std::string tostring(); }; int main(){ struct c4game c4; ........ c4.init(nr,nc); } bool c4game::init(int nrows, int ncols){ ... }
Come si chiama questo modello di programmazione?