Hey im getting a couple of compile errors in this thing im trying to compile could someone help me out? (p.s. I have no clue what it does i found it in a book)
Your compiler error is telling you that it doesn't know what the function error() is.
Like chrisname said, the code makes no sense. Maybe you're leaving something out?
Did you copy it from Stroustrup's book, modular programming paragraph? It won't compile, those examples aren't meant to compile. He just uses them to demonstrate different programming styles.