   ofstream problems
  I'm trying to out put some data to a text file but my program keeps crashing.  Heres my code.ofstream fout;fout.open("results.txt");fout << 0.5;fout.close();If I remm out fout << 0.5 it dosent crash, also if I change 0.5 to an integer  or string it also runs fine. It only crashes if I try to output a decimal. I've done similar things many times and never had these problems before. Any help would be great, thanks.   