Jump to content
  • Advertisement


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


Why Isnt this working?

This topic is 5754 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

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!