One issue is that you seem to have a return statement in your NumberSpell() function that probably shouldn't be there, line 80.
Also in main() you have a cin.get() that should probably be removed, line 42.
Also you do realize that your only printing the NumberSpell to the screen, not to your file? You may want to also pass a ostream& into that function so you can print to any stream, including cout.