Sign in to follow this  

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

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

This topic is 3593 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this