compiler says it cannot find <iomanip> file.

I am using ChIDE by SoftIntegration. I am trying to use setw() function, and I know that I need the header file <iomanip>, but when I run & compile, I get message saying that <iomanip> cannot be found. Is it possible to add this file? If so, how do I do it? Can somebody please advice me?

Here is the simple code I am trying to make work:


#include <stdlib.h>
#include <iostream>
#include <iomanip>

using namespace std;

int main(int argc, char *argv[])
{
cout << setw(6) << 15937 << endl
<< "x"
<< setw(5) << 753 << endl
<< "------\n"
<< (15937 * 753) << endl << endl;

system("PAUSE");
return EXIT_SUCCESS;
}
Last edited on
According to SoftIntegration's web site, Ch is a C interpreter which supports some C++.

From the faq:
Ch is C with classes and high-level extensions. Ch is a superset of C. Note that C++ is no longer a superset of C.


My suggestion would be to get a real C++ compiler.
Thanks for your advice cire. I got another compiler and I'm back on the road.
Topic archived. No new replies allowed.