you should be able to use string if you have this at the top:

#include <iostream>
using namespace std;

otherwise be sure to use strcpy() instead of just = when doing an assignment. let me know how it goes!