Thread: Hello all Question about Vector

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Jan 2004
    Posts
    2

    Hello all Question about Vector

    Does anyone use linux g++? If so i tried to declare a vector and it fails. Saying function is undeclared ususaly meaning the function is is either diffent from the ones i learned and the books i have read in the past or what, but here it is.
    Code:
    //// creates a empty Vector Container
    vector<int> Can;
    Now I just wanted to create a empty one just so i can define it later.

    But it keeps giving me function needs to be declared.
    In my windows compiler or Bloodshed i used to use both its #include <vector>

    and i did the same here to be included so Im clueless hopefully someone has used g++ before.

    Also i have done it this way
    Code:
    vector <int> Can
    You know spacing it away from the word vector
    Last edited by Evenius; 01-08-2004 at 07:37 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Copying Array to Vector Question
    By bengreenwood in forum C++ Programming
    Replies: 1
    Last Post: 06-01-2009, 03:00 PM
  2. Need some help/advise for Public/Private classes
    By nirali35 in forum C++ Programming
    Replies: 8
    Last Post: 09-23-2006, 12:34 PM
  3. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM
  4. Question about view vector, position, and matrix speed
    By Silvercord in forum Game Programming
    Replies: 1
    Last Post: 02-03-2003, 12:37 PM
  5. Operators for 3D Vector Mathematics
    By Anarchist in forum C++ Programming
    Replies: 10
    Last Post: 01-31-2003, 07:33 PM