Hi guys, I just found out that setw is not recognized in Netbeans C++ with Cygwin even when IOMANIP is included in my program.
Is there anything I can do for this? I need to format the output of my program, thanks.
markdean1989
0
Light Poster
Recommended Answers
Jump to PostHow are you using it? Also, have you declared "using namespace std;"? If not, then you need to prefix it with std:: as in
std::cout << std::setw(width) << std::dec << value << std::endl;
All 3 Replies
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
markdean1989
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.