• Advertisement

Archived

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

Why Isnt this working?

This topic is 5540 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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; out.open( "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
Advertisement

  • Advertisement