2016.12.6
来源:互联网 发布:易通网络加速器官网 编辑:程序博客网 时间:2024/05/18 18:44
张凌枫<2016.12.6>【连续第19天总结】
A.今日任务
1.封装下篇章节总结
2.迷宫函数
B.具体任务
1.把常指针和常引用练习一遍
2.开始写迷宫函数
3.DOS界面的迷宫真是太。。。。。。。丑了
4.我觉得我还要多学习一下,想慢慢学之后的继承篇,多复习之前的东西(前面那些不怎么用的知识点都开始忘了)
5.想方设法美化迷宫至少让他好看一点
6.分号啊!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
附代码:
#include <iostream>#include <string>#include <Windows.h>#include <conio.h>using namespace std;HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);class Map{public: void printMap();private: int map[9][9] =//迷宫数组 { { 1,1,1,1,1,1,1,0,1 }, { 1,1,1,1,1,0,0,0,1 }, { 1,1,1,1,1,0,1,1,1 }, { 1,1,1,1,1,0,1,1,1 }, { 1,1,1,1,1,0,1,1,1 }, { 1,1,1,1,1,0,1,1,1 }, { 1,1,1,1,1,0,1,1,1 }, { 1,0,0,0,0,0,1,1,1 }, { 1,0,1,1,1,1,1,1,1 } };};void Map::printMap()//打印迷宫函数{ for (int i = 0;i <= 8;i++) { for (int j = 0;j <= 8;j++) { if (map[i][j] == 1) { cout << '*'; } else { cout << ' '; } } cout << endl; }}int main(){ Map *p = new Map(); p->printMap(); cout << endl << endl << endl << "大爷你的迷宫终于他喵的打出来啦!!!!!" << endl; SetConsoleCursorPosition(handle, { 1,8 }); cout << "T" << endl; delete p; p = NULL; _getch(); return 0;}
明日任务
迷宫函数(把小人放进去)
复习复习
博客地址:http://blog.csdn.net/night__day
0 0
- 2016.12.6
- 2016.12.6开启求职路
- 2016.12
- 2016.12.1
- 2016.12.2
- 2016.12.04
- 2016.12.1
- 2016.12.2
- 2016.12.3
- 2016.12.4
- 2016.12.03
- 2016.12.5
- 2016.12.10
- 2016.12.13
- 2016.12.7
- 2016.12.8
- 2016.12.9
- 2016.12.10
- malloc函数实现原理
- javascript事件——事件处理程序
- 1的数量(51nod)
- C++ 中的文件读取操作
- 第四天
- 2016.12.6
- iOS热修复(热更新)技术预研
- 四、管道命令的使用
- Intelij IDEA2016中常用技巧(插件、主题、快捷键等)
- Android 文件存储系统
- nodejs mongoose 操作mongodb 数据库封装
- 彩笔笔记2016/12/6——collection
- 104. Maximum Depth of Binary Tree 求树的最大深度
- Paxos算法与Zookeeper分析