三种方法检测数组边界
摘要:
c++primer里的一道题int *a;int a[];int a[10];三种形参都一样,都被认为是int *a。能检测边界的只有这种 int(&a)[10]。#includeusing std::cin;using std::cout;using std::endl;i... 阅读全文
posted @ 2016-05-31 20:54 雪峰00 阅读(519) 评论(0) 推荐(0)
posted @ 2016-05-31 20:54 雪峰00 阅读(519) 评论(0) 推荐(0)
posted @ 2016-05-31 16:44 雪峰00 阅读(92) 评论(0) 推荐(0)