Look at the object histName, it is empty. So the output is strange.
go here i= 8
go here i= 7
go here i= 6
But when you run it one by one line, you will find it acts normally.
I didn’t try other platform.
ddeb.C (381 Bytes)
If function seekp does not have a valid argument is set the string in fail mode (in other words disable it). You do
where, at that time, 0 is NOT valid (because it is newly created with the default constructor). Remove that line and everything works as you expect.
Thank you very much.
I tried this code in linux(root 3.10/01). It worked normal.