I'm working from the Bjarne Stroustrup Programming: Principles and Practice using C++ book. I've recently ran into a point in the book in which I must use the header file so I dug it up and saved it in the directory in which my .cpp files are held. When I try to run the program I get multiple compile errors which come from the std_lib_facilities.h file.
Here is the code I'm using. I believe it is just example but regardless, I get multiple errors when including the header.
1 2 3 4 5 6 7
int framed_area(int x, int y)
{
constint frame_width = 2;
if (x-frame_width<=O || y-frame_width<=O)
error( "non-positive area() argument called by framed_area()");
return area(x-frame_width,y-frame_width);
}