if I have a class...
Code:
class Note {
private:
string step;
string octave;
string duration;
int measurenum;
};
with appropriate accessor functions and so forth, and then build a class...
Code:
class Measure{
private:
vector <Note> Measures;
};
what is the best method to access the variables in each instance of the vector( presumably step, octave, duration...) I am having trouble being able to make a method in the class to print out this information...Also, i am getting an error message stating "Note" not declared in this scope....Both files include each other and I have includes for <vector> as well as the std namespace...why is there an error?
any help would be great...