Skip to main content
gamedev.net
🔒 Locked

vector in class

Started by quasar3d 1 reply 200+ views
Original Post
quasar3d
quasar3d
Is it possible to have an stl vector in a class this causes an error: class C { public: vector < float >v(5); }; My Site [edited by - Quasar3D on January 13, 2003 10:38:02 AM]
civguy
civguy

  
class C {
public:
C() : v(5) {}
vector<float> v;
};
quasar3d
quasar3d
I think I understand it. Thanx

My Site

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.