Since you included only a small snippet of code, here's a suggestion:
When you use the string class, make sure and include <string> and not <string.h>
#include <string>
using namespace std;
hope this helps. Failure is not falling down, it's staying down.