Thread: Vectors work when they want to.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    141

    Vectors work when they want to.

    Makes 0% sense.

    I understood and still understand how to make vectors, but now it doesn't work, what the hell?

    push_back is acting like a dick, it gives me an error when I try to call it, even though it's been called like this before, pfft.. It's weird.

    Code:
    #include <string>
    #include <vector>
    
    std::vector<int> vec;
    Yes we know this works, and push_back works.

    Code:
    
    
    vec.push_back(12);

    But this doesn't work, and I even used vectors before, and even used this, now it doesn't work. Lol C++ is REEEEAALLY GREAT
    Last edited by bobbelPoP; 07-28-2008 at 06:50 AM.

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 properly get data out of vectors of templates?
    By 6tr6tr in forum C++ Programming
    Replies: 4
    Last Post: 04-15-2008, 10:35 AM
  3. Adding vectors ??
    By Hussain Hani in forum C++ Programming
    Replies: 1
    Last Post: 11-18-2006, 03:03 AM
  4. Axis based on 2 Vectors
    By durban in forum Game Programming
    Replies: 1
    Last Post: 11-10-2005, 04:38 PM
  5. fopen();
    By GanglyLamb in forum C Programming
    Replies: 8
    Last Post: 11-03-2002, 12:39 PM