Append the statement using namespace std; after the inclusion of the headers and you should be fine. This is because the C++ implementation wraps all the standard functions in a namespace std, so you have to make the compiler aware of that by using the "using namespace std;" statement.
Also if you are using new style of header inclusion, stick to it and don't mix the two techniques.
Also you positioning of braces is incorrect -- you have got them all skewed, you need to use the opening braces for writing function definations and not before them.
Do something like:
#include <iostream>
#include <cmath>
#include <cstring>
#include <iomanip>
using namespace std ;
int main( void )
{
// code
}
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734
What's this?
#include<iomanip>
{
int main()
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314