Thread: What does this line of of code mean?

  1. #1
    Registered User
    Join Date
    Apr 2002

    Angry What does this line of of code mean?

    Can someone explain what the colon does here:
    template<class T> class Vec : public vector<t> { ...
    Last edited by Gamma; 04-24-2002 at 09:27 PM.

  2. #2
    Has a Masters in B.S.
    Join Date
    Aug 2001
    i used in inheritance for C++ classes so that

    class Vec : public vector

    means class 'Vec' Inherits all of class 'vectors' member functions, member variables, ect ect..

    do a search on on C++ class or C++ inheritance or get a book on C++ for a much better and more indepth explaination.
    ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C code line, pointer declaration
    By Dedalus in forum C Programming
    Replies: 2
    Last Post: 06-10-2009, 04:34 AM
  2. help again with scrolling without wrapping
    By Dukefrukem in forum C Programming
    Replies: 8
    Last Post: 09-21-2007, 12:48 PM
  3. Can't figure out a line of code...
    By bamera in forum C++ Programming
    Replies: 1
    Last Post: 10-15-2005, 07:11 PM
  4. SSCANF help
    By mattz in forum C Programming
    Replies: 7
    Last Post: 12-10-2001, 04:53 PM