User Profile

Collapse

Profile Sidebar

Collapse
joraara
joraara
Last Activity: Sep 16 '07, 10:51 PM
Joined: Sep 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • joraara
    replied to Vectors within Structures
    in C
    Thanks ilikepython for your reply.
    I've just done what you said and the compiler detedcs no error.
    Now the problem is trying to build the .obj; it's showing 3 errors and I have no idea what they mean. Here is the message:

    Linking...
    Facturacion.obj : error LNK2001: unresolved external symbol "struct product * producto" (?producto@@3PA Uproduct@@A)
    Facturacion.obj : error LNK2001: unresolved external...
    See more | Go to post

    Leave a comment:


  • joraara
    started a topic Vectors within Structures
    in C

    Vectors within Structures

    Hi,

    I appreciate if someone is able to help me.

    I've declared a structure and two of it's members are vectors, let's say:

    #include <vector>
    using namespace std;
    struct str{
    vector< int >v1();
    vector< int >v2();
    } str;

    However, I don't manage to use those vectors as usual, for example: str.v1...
    See more | Go to post

  • joraara
    started a topic Vectors and Structures
    in C

    Vectors and Structures

    Hi.

    I hope someone would be able to help me with this:

    I need to declare a structure composed by a couple of vectors. But I need those vectors to have an open dimension, I mean non-especific size (for example: short vector[]) so that the user doesn't have to be tied under a maximun limit.

    I'm using Visual C++, but the compiler won't let me use such a way of declaring a vector inside the structure (although...
    See more | Go to post
No activity results to display
Show More
Working...