Thread: creating a function with return value of an array with 3 dimensions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    2,663
    My vector is to hold structure containing three elements (int, int, double).
    When you create a struct, you create a new type--just like int, double, float, etc. The new type is the name of the struct. Your vector has to declare what type of things it will contain. 'struct' is not a type.
    Last edited by 7stud; 01-23-2007 at 11:17 AM.

  2. #2
    Registered User
    Join Date
    Oct 2001
    Posts
    2,934
    Do as Lasarlight suggested.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Getting an error with OpenGL: collect2: ld returned 1 exit status
    By Lorgon Jortle in forum C++ Programming
    Replies: 6
    Last Post: 05-08-2009, 08:18 PM
  2. In over my head
    By Shelnutt2 in forum C Programming
    Replies: 1
    Last Post: 07-08-2008, 06:54 PM
  3. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  4. Replies: 4
    Last Post: 11-23-2003, 07:15 AM
  5. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM