会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
IFPELSET
专注于C/C++,Linux
首页
管理
文章分类 -
C++学习笔记
[day02]引用高级、类型相关的操作、enum、new/delete重载、大数运算、函数模板与自动变量、inline
摘要: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)
[day01]C++与C语言的不同、auto自动变量、函数重载、函数的默认参数、引用、const、new&delete
摘要: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)