|
-
December 19th, 2005, 05:12 AM
#1
std namespace
I have bought a book for C++ and in some examples has the following code:
#include <cstdlib>
using std::exit;
int main()
{
.....exit(1);
}
I use Visual C++ 6 and when I compile this code it produces this error:
"error C2039: 'exit' : is not a member of 'std' "
When I delete " using std::exit",the source code is compiled without any errors.
Why is that?Microsoft Visual C++ 6 defines in a different way the std namespace so as not to include exit?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|