This topic is now archived and is closed to further replies.


Why Isnt this working?

Recommended Posts

I'm tring to save some data to a file, in this case a D3DXVECTOR3, and I do the following D3DXVECTOR3 vect( 1, 2, 3 ); ofstream out; "Blah.txt" ); out << vect.x << '\n'; out << vect.y << '\n'; out << vect.z << '\n'; but the output in the file is: -1.#QNAN -1.#QNAN -1.#QNAN My methods of using "out <<" works for everything else, why not this? EDIT: Actually I have another question. If I can save data of the type 'enum' to a file, why can't I load it? [edited by - Mulligan on December 23, 2002 6:49:33 PM]

Share this post

Link to post
Share on other sites