Search:

Type: Posts; User: maloy

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    This code is in main for(int i_index =...

    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
  2. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    ok i have overloaded the >> operator and in main...

    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 >>...
  3. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    because i can't do that, i have to make it fit...

    because i can't do that, i have to make it fit what is already in main.
  4. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    its supposed to read in data from a file that...

    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...
  5. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    I see your code, but i don't see how that code...

    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?
  6. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    I can't do that i really need to make that...

    I can't do that i really need to make that particular line of code work, does anyone have any ideas.
  7. Thread: Question

    by maloy
    Replies
    15
    Views
    1,626

    Question

    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:
  8. Thread: print problem

    by maloy
    Replies
    2
    Views
    1,125

    this one is different because before i was trying...

    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
  9. Thread: print problem

    by maloy
    Replies
    2
    Views
    1,125

    print problem

    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.
    ...
  10. Replies
    11
    Views
    2,375

    having a problem with control in my program i...

    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...
  11. Replies
    11
    Views
    2,375

    umm no course is not the first class but its not...

    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...
  12. Replies
    11
    Views
    2,375

    it gives me an error when i leave it like that...

    it gives me an error when i leave it like that
    error C2039: 'printInstructor' : is not a member of 'Course'
  13. Replies
    11
    Views
    2,375

    is there a way i can have a print function in one...

    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...
  14. Replies
    11
    Views
    2,375

    thanx

    thanx
  15. Replies
    11
    Views
    2,375

    Accessing private data members

    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
    ...
  16. Replies
    4
    Views
    1,532

    ok this the input file i have Ray L. Jones...

    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...
  17. Replies
    4
    Views
    1,532

    the question is how can i store the data, I tried...

    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:...
  18. Replies
    4
    Views
    1,532

    Reading Course information

    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....
  19. Replies
    12
    Views
    1,411

    ok here is my code in a zip file, i have error...

    ok here is my code in a zip file, i have error problems as i posted above.
  20. Replies
    12
    Views
    1,411

    because the other files are classes i have three...

    because the other files are classes i have three different classes and then their member function files
  21. Replies
    12
    Views
    1,411

    How do i put everything in a zip file

    How do i put everything in a zip file
  22. Replies
    12
    Views
    1,411

    I think there could be something wrong with my...

    I think there could be something wrong with my constants file
  23. Replies
    12
    Views
    1,411

    ok here is the driver file but im gettin these...

    ok here is the driver file but im gettin these weird syntax error






    #include "lab1InstructorCL.cpp"

    void printCourses(Instructor *);
  24. Replies
    12
    Views
    1,411

    Help with a Class

    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...
  25. Replies
    13
    Views
    5,379

    thank you

    thank you
Results 1 to 25 of 43
Page 1 of 2 1 2