std::string help!

i am trying to make a class called resource_data which contains some std::string arrays.. it looks like this;

1
2
3
4
5
6
7
8
9
10
11
class resource_data {
	std::string bunny_Colours[4];
	std::string bunny_Names[30];
	std::string RVB_Names[10];
public:
	resource_data();
	std::string get_rand_colour();
	std::string get_rand_name();
	bool get_rand_gender(); // returns true if male
	bool get_rand_mutation(); // returns true if normal bunny.. false if mutant.
};


but i keep getting these errors!

1
2
3
error C2039: 'string' : is not a member of 'std'
error C2146: syntax error : missing ';' before identifier 'bunny_Colours'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


can somebody please help me :(
Did you #include <string> ?
i feel like deleting this post... im such an idiot.. thank you my friend :)
Topic archived. No new replies allowed.