Thread: how would i pass on a vector pointer parameter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Banned
    Join Date
    Nov 2005
    Posts
    8

    how would i pass on a vector pointer parameter

    just a simple question...

    i have this vector of a class
    Code:
    std::vector<PClass>* classes
    but on a function i need this as a parameter
    Code:
    createClass(const & std::vector<PClass *>)
    how could i pass my vector to this function?? would i do a long method in which creating a copy of vector of PClass pointers? or is there any other better solutions?

    thanks and more power..
    Last edited by bugmenot; 12-15-2005 at 02:41 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-22-2007, 12:58 AM
  2. Passing "this" as function parameter
    By pgavigan in forum C++ Programming
    Replies: 15
    Last Post: 07-13-2007, 10:06 AM
  3. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  4. Problems generating terrain with OpenGL
    By OnionKnight in forum Game Programming
    Replies: 8
    Last Post: 04-26-2007, 05:05 AM
  5. Parameter passing with pointer to pointer
    By notsure in forum C++ Programming
    Replies: 15
    Last Post: 08-12-2006, 07:12 AM