Thanks for that.. so we're not using struct anymore!!
it works thou so thats good...
just one more thing.. how do i print it to the screen.. do i need a print function in the StudentModule...
Type: Posts; User: faisal791
Thanks for that.. so we're not using struct anymore!!
it works thou so thats good...
just one more thing.. how do i print it to the screen.. do i need a print function in the StudentModule...
sorry i dont get it.. im using a struct to hold all the necessary information about the module. i cannot pass three arguments to
students.push_back( StudentModDetail("Database Engineering",...
hi, i am fairly new to vectors and having trouble implementing this...
would it be possible for you to show me how to implement the whole thing?!!
Thanks for your speedy replys.. i will try that in the morning... really tired now and my eyes are burning...
i shall get back you to tomorrow... Thanks once again..!!
i would like the constructor arguments to adjust with the no of Modules enters...
suppose if no of modules = 3 then i should be able to enter 3 sets of struct objects...
i dont know what to do...
StudentModules sM1 (2,sModD,sMod2,...);
thats what i would like to do
but i get the error message
'StudentModules::StudentModules' : no overloaded function takes 3 arguments..
StudentModDetail sModD = {"Database Engineering", "ISYDS2001", 20};
StudentModules sM1 (2,sModD);
the above corresponds as the user input...
this will need further development into MFC or...
//this is header file StudentModule.h
struct StudentModDetail
{
string moduleCode;
string moduleName;
unsigned creditPoints;
};
class StudentModules
{
hi, i am trying to write a program, using classes and structs and inheritence…
the program kind of represents a university system where tutors teach only specific modules and students are only...