#including Hello 'guys'; // i have a dump question, my mind isn't working now HOW can i use these classes together(please_help_me A)?
class student { public: student(); ~student(); int age; int ID; // want MAX 10 year for a student Year YEAR[10]; //<------ ERROR }; student::student() { //What should i do for declaring Array YEAR } class Year { public: Year(); ~Year(); string name; int _year; //want MAX 7 book for a year book BOOK[]; //<------ ERROR //book BOOK[7]; ??? }; Year::Year() { //Same Problem . .. ! } class book { public: book(); ~book(); int ID; string name; };
book
Year
student
class book;
#include <vector> class a {}; std::vector<a> a_arr; a ob; a_arr.push_back(ob); </a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)