20116.10.26 引用和指针
来源:互联网 发布:powershell for linux 编辑:程序博客网 时间:2024/06/13 01:45
张凌枫<2016.10.25> 【连续第3天总结】
A.今日任务
1.循环结构复习(90%)
2.指针和引用(90%)
3.const关键字(70%)
1.循环结构复习(90%)
2.指针和引用(90%)
3.const关键字(70%)
B.具体任务
1.搞了个金字塔觉得很好玩
2.指针的引用和引用的指针 指针的指针和引用的引用感觉有点像绕口令不过实际用起来感觉还不错
3.const关键字到现在还没有找到用的地方
4.分号!!分号!!
1.搞了个金字塔觉得很好玩
2.指针的引用和引用的指针 指针的指针和引用的引用感觉有点像绕口令不过实际用起来感觉还不错
3.const关键字到现在还没有找到用的地方
4.分号!!分号!!
附代码:
#include <iostream>
//#include <stdlib.h>
using namespace std;
void jinzita(int x)
{
for(int i = 1 ; i<=x;i++)
{
for(int k = x-i ;k>0;k-- )
{
cout<<" ";
}
for (int y = 0 ; y<2*i-1 ;y++)
{
cout<<"*";
}
cout<<endl;
}
}
int main()
{
jinzita(60);
system("pause");
return 0;
}
#include <iostream>
//#include <stdlib.h>
using namespace std;
void jinzita(int x)
{
for(int i = 1 ; i<=x;i++)
{
for(int k = x-i ;k>0;k-- )
{
cout<<" ";
}
for (int y = 0 ; y<2*i-1 ;y++)
{
cout<<"*";
}
cout<<endl;
}
}
int main()
{
jinzita(60);
system("pause");
return 0;
}
#include <iostream>
using namespace std;
using namespace std;
int main()
{
int a;//张三
int &b = a;//小张
int *c = &b;//第?排
*c = 1;//小张在第一排
cout<<a<<endl;张三在第一排
{
int a;//张三
int &b = a;//小张
int *c = &b;//第?排
*c = 1;//小张在第一排
cout<<a<<endl;张三在第一排
system("pause")
return 0
}
return 0
}
明日任务
1.复习之前所学
2.函数的特性
3.内存管理
1.复习之前所学
2.函数的特性
3.内存管理
博客地址:http://blog.csdn.net/night__day/article/details/52905196
0 0
- 20116.10.26 引用和指针
- 指针和指针引用
- 指针和指针引用
- 指针和指针的引用
- 指针和指针的引用
- 指针,和指针的引用
- 指针和指针的引用
- 引用和指针小结
- 指针和引用
- 区分指针和引用
- 指针和引用
- 指针和引用
- 指针和引用
- 指针和引用
- 引用和指针
- 函数指针和引用
- 引用和指针
- 引用和指针
- 【微信小程序+ES6新特性应用】通过对类的操作来处理数据后显示在视图界面
- 数1-n个数中0-9出现过多少次
- Jnetpcap 官方样例(2)- 创建一个TCP数据包
- java语言数组工具类的建立和静态的使用
- Dagger2从入门到放弃再到恍然大悟
- 20116.10.26 引用和指针
- MySQL复杂语句查询问题
- JDBC中Statement接口提供的execute、executeQuery和executeUpdate之间的区别
- NIO(3) FileChannel
- APUE笔记---第三章文件I/O
- hrbust 1055 Single【暴力预处理】
- 【HDU 2544】最短路裸题【测板】
- go-tour (1)
- 欧拉回路总结