Book Title: Beginning Visual C++ 2005
ISBN: 978-0-7645-7197-8
Platform: Visual C++ 2005 Pro SP1 for Vista
Problem: Ex2_03
I copied the code from the book exactly below is code in question:
Code:
// Ex2_03.cpp
// Exercising output
#include <iostream>
#include <iomainp>
using std::cout;
using std::endl;
using std::setw;
int main()
{
int num1 = 1234, num2 = 5678;
cout << endl; // Start on a new line.
cout << setw(6) << num1 << setw(6) << num2; // Output two values.
cout << endl; // End on a new line.
return 0;
}
but when i build the solution i get the following error:
Code:
Error 1 fatal error C1083: Cannot open include file: 'iomainp': No such file or directory file Ex2_03.cpp line 4
can anyone give me pointers as to where i am going wrong, any help is much appreciated.
Regards
Pendragon