two parameter in a constructor

This is a discussion on two parameter in a constructor within the C++ Programming forums, part of the General Programming Boards category; Yes, except that in main() you should use a single GradeBook object and pass both the course and instructor name ...

  1. #16
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,651
    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

Page 2 of 2 FirstFirst 12
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, 03: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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21