Arrays and strings

Hey guys im trying to create an array of strings. is that allowed? If not what should i use instead?

string female_name[10] = {"Martha","Jude","Abigail","Maria","Karina","Meg","Shaniqua","Francine","Stacey","Hayley"} ;

IDE sais that is ok - yet when i try to cout<<female_name[0]; it sais that is not allowed. Could i get some insight

Thank you!

EDIT: God damnet! I didint #include <string>

Sorry topic done
Last edited on
Topic archived. No new replies allowed.