Thread: derived quesiton

  1. #1
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101

    derived quesiton

    I did something similar in a program i had before

    Code:
    Recording::Recording(Recording& r) : Holding(h)

    but this time around says that ( h ) is an undeclared identifier....

    holding(h) is actually the base class Holding(Holding& h)

    I'm not really understanding the concept I believe....any thoughts

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Perhaps you meant to write:
    Code:
    Recording::Recording(Recording& r) : Holding(r)
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User verbity's Avatar
    Join Date
    Nov 2006
    Posts
    101
    God I'm stupid!!!! Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 8
    Last Post: 06-03-2009, 03:00 PM
  2. Deleting derived classes
    By *DEAD* in forum C++ Programming
    Replies: 6
    Last Post: 09-30-2008, 12:37 PM
  3. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 05:01 PM
  4. Help accessing classes and derived classes
    By hobbes67 in forum C++ Programming
    Replies: 8
    Last Post: 07-14-2005, 02:46 PM
  5. Inheiritance and derived classes
    By pecymanski in forum C++ Programming
    Replies: 2
    Last Post: 12-09-2001, 03:50 PM