I am implementing a class and I have a function that does things using lots of variables that need to be declared and initialised.

I'd like the variable declarations not to clutter the function and do something like:

```
doFunction(){
  declare();

  //Do things with variables declared in declare()
}
void declare(){
  //declare lots of variables here
}

```

This does not work as the variables are scoped to declare() and aren't seen by doFunction(). What's a sensible way to handle this problem?