Thread: two parameter in a constructor

  1. #16
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Yes, except that in main() you should use a single GradeBook object and pass both the course and instructor name to your two-argument constructor.

  2. #17
    Registered User
    Join Date
    Jul 2008
    Posts
    91
    So how should main look like?

  3. #18
    Registered User
    Join Date
    Jul 2008
    Posts
    91
    anyone? please
    Last edited by freddyvorhees; 07-25-2008 at 11:11 PM.

  4. #19
    Registered User
    Join Date
    Jul 2008
    Posts
    91
    I figured it out thanks for your help, phew... sorry for being a dumbass

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Logical parameter in parent constructor
    By g4j31a5 in forum C++ Programming
    Replies: 4
    Last Post: 11-29-2006, 04:20 AM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  5. Constructor with Parameter not Firing
    By BillBoeBaggins in forum Windows Programming
    Replies: 4
    Last Post: 08-26-2004, 02:17 PM