文章分类 -  C++学习笔记

摘要:1.引用高级一维数组的引用int main(){ int a[5] = { 1, 2, 3, 4, 5 }; int(& ra)[5] = a; for (auto data : ra) { cout int (&ra)[2] = a; // int a[2]... 阅读全文
posted @ 2015-05-13 14:36 IFPELSET 阅读(290) 评论(0) 推荐(0)
摘要:1.C++与C语言的不同C++是强类型语言,C语言是弱类型语言void main(){ //C++注重类型,强类型,严格检查类型 int *p1=NULL; double *p2=NULL; p1 = p2; // C++中error C2440: “=”: 无法从“doub... 阅读全文
posted @ 2015-05-10 13:56 IFPELSET 阅读(497) 评论(0) 推荐(1)