用VC++6编程时,按照教材上给的范例,其中的一个包含在<cstdlib>中的std::exit...

来源:百度知道 编辑:UC知道 时间:2024/06/02 00:45:21
可是,在VC6中是错误的..无法用.是怎么回事呢?是程序的问题还是编译器的问题.
提示是:
E:\C++ exerise\重新写的Array类\TextArray.cpp(8) : error C2039: 'exit' : is not a member of 'std'
E:\C++ exerise\重新写的Array类\TextArray.cpp(8) : error C2873: 'exit' : symbol cannot be used in a using-declaration

两种可能都有 vc环境是有点不稳定。
但是 既然是教材上的东西一定有其可用性但也不是一定是对的。所以要将std::exit……改为::exit……试下 看看能不能行
祝你学业有成

提示什么?