I have a simple but frustrating problem using MinGW
with DEV-C++. I have ported some code which
compiles with no problem on BC55++. I am using
the latest download of DEV-C++ v22.214.171.124.
This code fails with the error
"`left' undeclared (first use this function)":
cout << left << "Hello";
If I replace this line with the following two lines the
code compiles and works:
cout << "Hello";
Note that I include <iostream> and <iomanip>.
Why do the 'left' or 'right' manipulators fail and how
can I fix it?
Log in to post a comment.