- 博客(2)
- 收藏
- 关注
转载 转帖:数组越界
C++不会自动检查数组越界,也就是说如果数组越界,程序编译时不会报错,从而在执行时产生非法操作或者得不到正确的结果。因此在使用数组时,一定要在编程中判断是否越界以保证程序的正确性。面试例题8:改错--数组越界考点:数组越界出现的问题。出现频率:★★★★题(1) 1 void test1()2 {3 char strin
2010-05-25 11:11:00 847
原创 关于string::find的返回值
#include #include int main(int argc, char* argv[]){ std::string szHello = "hello,world!"; if( szHello.find("hi")>= 0) std::cout else std::cout return 0;} 上
2010-05-06 16:46:00 3679
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人