Thread: Using Vectors in C++

  1. #1

    Using Vectors in C++

    Hello everyone i need to use vectors to store banking account information, i.e. First name Last name, SSN, balance, accout number, etc.., and then use the account number to retrieve the specified account information back. I know linked list would be alot easier but its a extra credit for class and the criteria calls for using vectors

  2. #2
    Still A Registered User DISGUISED's Avatar
    Join Date
    Aug 2001
    Ok so what do you need help with?

  3. #3
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Cape Town
    read this

  4. #4
    Banned Troll_King's Avatar
    Join Date
    Oct 2001
    struct Accnt

    struct Accnt nMember;
    vector<struct Accnt> vAccnt;

    vAccnt.push_back (nMember);

    Do something like that. Use iterators in the loop to represent each element (struct member).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Vectors
    By naseerhaider in forum C++ Programming
    Replies: 11
    Last Post: 05-09-2008, 08:21 AM
  2. How can i made vectors measuring program in DevC++
    By flame82 in forum C Programming
    Replies: 1
    Last Post: 05-07-2008, 02:05 PM
  3. How properly get data out of vectors of templates?
    By 6tr6tr in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 10:35 AM
  4. How to use Vector's in C++ !?!
    By IndioDoido in forum C++ Programming
    Replies: 3
    Last Post: 10-14-2007, 11:13 AM
  5. Points, vectors, matrices
    By subnet_rx in forum Game Programming
    Replies: 17
    Last Post: 01-11-2002, 02:29 PM