Thread: getting size of a vector

  1. #1
    Registered User abrege's Avatar
    Join Date
    Nov 2002
    Posts
    369

    getting size of a vector

    For example...
    Code:
    for(int i = 0; i < sizeOfVecHere; i ++)
         cout << vec[i];
    Thanks
    I am against the teaching of evolution in schools. I am also against widespread
    literacy and the refrigeration of food.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    vec.size()

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vector Problem
    By Morgul in forum C++ Programming
    Replies: 4
    Last Post: 02-25-2006, 11:36 PM
  2. Invalid conversion from 'void*' to 'BYTE' help
    By bikr692002 in forum C++ Programming
    Replies: 9
    Last Post: 02-22-2006, 10:27 AM
  3. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 12:26 AM
  4. my vector class..easy dynamic arrays
    By nextus in forum C++ Programming
    Replies: 5
    Last Post: 02-03-2003, 09:14 AM
  5. Operators for 3D Vector Mathematics
    By Anarchist in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2003, 06:33 PM