Jump to content
  • Advertisement
Sign in to follow this  

[Solved]std::setw issues with DevC++

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

If this is thread is posted under the wrong topic, please repost accordingly. Thank you. I'm working to get all my old C code updated to C++ code. I've updated the Structs to Classes and printf to std::cout. The following is the old code, and the new code: Old: printf("Player Name: %-22s\n", myPlayer.name); New: std::cout << "Player Name: " << std::set(22) << myPlayer.GetName() << std::endl; The problem is the compiler says: std::setw(22) is not a member of std. I've got #include <iostream>, what am I doing wrong? Thank you in advance, BladeStone [Edited by - BladeStone on February 16, 2008 9:50:17 AM]

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • 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!