Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Vector bullshit

Name: C++ is retahded 2008-03-30 21:27

#include <vector>

typedef struct
{
      int a;
} t_struct;


class t_Class
{
      vector <t_struct> v_Vector;
}


It tells me that ISO C++ forbids declaration of 'vector' with no type.  What the hell is the problem here?  I've tried all sorts of different shit but I can't make the fucking vector somehow.

Name: Anonymous 2008-03-30 22:28

>>7
I'm not a C++ programmer, so I don't know if importing the namespace into the current namespace is common practise, or referring to the package manually with each reference to something within it. In Haskell one just imports the whole namespace and resorts to qualifying or specific naming "namespace.symbol" (analogous to "namespace::symbol") when there are conflicts.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List