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...
User Profile
Collapse
-
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... -
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...
No activity results to display
Show More
Leave a comment: