This code is in main
for(int i_index = LOOP_BASE; i_index < MAX_INSTRUCTORS; i_index++)
{
I[i_index] = new Instructor();
inFile >> *(I[i_index]);
This is in class Instructor
Type: Posts; User: maloy
This code is in main
for(int i_index = LOOP_BASE; i_index < MAX_INSTRUCTORS; i_index++)
{
I[i_index] = new Instructor();
inFile >> *(I[i_index]);
This is in class Instructor
ok i have overloaded the >> operator and in main i have a line of code like this Instructor *S[3] which is an array of 3 pointers to class Instructor and then also in main is the line:
inFile >>...
because i can't do that, i have to make it fit what is already in main.
its supposed to read in data from a file that looks like this
Ray L. Jones 3942 6 4 1974 3 2 2001
Alice K. Brown 8300 4 8 1969 2 1 1999
and store into a pointer of class...
I see your code, but i don't see how that code would make this a vaild line of code
inFile >> *(I[i_index]);
How will that read from the file?
I can't do that i really need to make that particular line of code work, does anyone have any ideas.
ok im trying to read in data from a file with this info
Ray L. Jones 3942 6 4 1974 3 2 2001
and i have a class like this
class Instructor {
public:
this one is different because before i was trying to get to a point where i could print now im there its just not printing everything
If someone could help me fix a problem with my almost done program, when i get to my function which prints out date it gets to one point of the code and an error comes up when using visual c++ 6.
...
having a problem with control in my program i guess. this code im posting is supposed to read data from this file and then do some things . the first function below is the first function called and...
umm no course is not the first class but its not working see this is what i have
Class Instructor is the first class and it has a function that is public called printInstructor that takes 4...
it gives me an error when i leave it like that
error C2039: 'printInstructor' : is not a member of 'Course'
is there a way i can have a print function in one class be able to be called from a member function of another class?
public:
Instructor(); // constructor
Instructor(string fn, string...
thanx
I need to know how to take private data members from one class and use them to access private data members of another class. I have a class like this:
class One
{
// Other code
...
ok this the input file i have
Ray L. Jones 3942 6 4 1974 3 2 2001
Alice K. Brown 8300 4 8 1969 2 1 1999
Gill R. Alante 4301 8 2 1972 6 5 2000
8300 CSE...
the question is how can i store the data, I tried to make class Course a friend of class Instructor but that did not seem to work.
when i get to the code that says:...
im trying to read in course information where the first number is an employeeID the second is the course department, the third is the course number and the fourth is the number of students in course....
ok here is my code in a zip file, i have error problems as i posted above.
because the other files are classes i have three different classes and then their member function files
How do i put everything in a zip file
I think there could be something wrong with my constants file
ok here is the driver file but im gettin these weird syntax error
#include "lab1InstructorCL.cpp"
void printCourses(Instructor *);
the private data in this class should include a a first name, a last name, a middle initial, an employee id, a birthdate, a hiredate,
and an array of no more than 4 pointers to courses, but im not...
thank you