Thread: easy Vector contructor question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Feb 2006
    Posts
    27

    easy Vector contructor question

    I have the following constructor

    Code:
    Vector ( T fill [ ], int size)
    {
      // don't know what goes here
    }
    My private variable are
    int cap;
    int num;
    T * data;

    I am told this contructor uses an array of elements to initialize the Vector.


    I am sure this is really easy but I am confused on how and what to do. Thanks in advance.
    Last edited by noodle24; 04-21-2006 at 03:24 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Easy String position question...
    By Striph in forum C Programming
    Replies: 4
    Last Post: 05-11-2009, 08:48 PM
  2. Easy question, (should be) easy answer... ;-)
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-12-2002, 09:36 PM
  3. Replies: 20
    Last Post: 05-25-2002, 07:14 PM
  4. EASY GUI development.. like with Qt?
    By rezonax in forum C++ Programming
    Replies: 2
    Last Post: 09-16-2001, 01:18 PM