I was trying to play around with Strings in a Hangman program that I'm writing and couldn't get them to work so tried working with them on a simpler basis and I'm still having no luck.

As far as I've read online in the references and what other people have said this code should work:

```
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;

int main (int argc, char** argv){

  string word = {"Hello"};
  int length = strlen(word);

}

```

But I get this compiler error:

'string' was not declared in this scope

and consequently, 'word' is also not declared in scope.

Can anyone see what I'm doing wrong? I'm using the g++ compiler on Ubuntu if that makes a difference, no idea which version though.