exit(1)是什么意思?
txing 2005-04-19 04:14:10 template <class AType> AType &atype<AType> :: operator[](int i)
{
if(i<0 || i>size - 1)
{
cout << "\nIndex value of";
cout << i << " is out of bounds.\n";
exit(1); /*这里的这个exit(1)是什么意思?为什么不用return?有什么区别吗?请详细解释一下exit这个函数。我去百度搜索找不到很有用的资料。*/
}
return a[i];
}