C++3D迷宫

server/2024/9/22 20:40:47/
x">
xmlns="http://www.w3.org/2000/svg" style="display: none;">z" id="raphael-marker-block" style="-webkit-tap-highlight-color: rgba(0, 0, 0, 0);">

目录

  • 开头
  • 程序
  • 程序的流程图
  • 程序游玩的效果
  • 下一篇博客要说的东西

开头

大家好,我叫这是我58。

程序

y">#yword">include <iostream>
yword">using yword">namespace std;
yword">void printmaze(yword">char strmaze[5][5][5]) {cout << "-----@" << endl;yword">int i = 0;yword">int ia = 0;yword">int ib = 0;yword">for (; i < 5; i++) {yword">for (ia = 0; ia < 5; ia++) {yword">for (ib = 0; ib < 5; ib++) {cout << "\033[" << ('G' == strmaze[i][ia][ib] ? "32;1" : "0") << "m" << strmaze[i][ia][ib] << "\033[0m";}cout << "|" << endl;}cout << "-----@" << endl;}
}
yword">int main() {yword">char strmaze[5][5][5] = {'P','*',' ','*','*','*',' ',' ',' ','*',' ',' ','*',' ',' ',' ','*','*','*',' ',' ',' ','*',' ',' ',' ',' ','*',' ',' ',' ','*',' ','*',' ','*','*','*','*','*',' ',' ','*',' ',' ',' ',' ','*',' ',' ','*',' ',' ','*',' ','*',' ','*',' ',' ',' ','*',' ','*','*',' ',' ','*',' ',' ',' ',' ','*',' ',' ','*','*',' ',' ',' ',' ',' ','*','*',' ',' ',' ','*',' ','*',' ',' ','*',' ',' ',' ',' ','*','*',' ','*','*',' ',' ',' ','*',' ',' ',' ',' ',' ','*','*',' ','*',' ',' ','*','*','*',' ','*',' ',' ','G',};yword">char* cp = &strmaze[0][0][0];yword">char ch = 0;cout << "欢迎你来玩这个3D迷宫&#xff0c;在这个迷宫中&#xff0c;“P”是你&#xff0c;“*”是墙&#xff0c;空格是你可以走的地方&#xff0c;而\033[32;1m“G”\033[0m是\033[32;1m终点\033[0m&#xff0c;走到这就能让你胜利了&#xff0c;并且&#xff0c;按“w”能使你往上移&#xff0c;按“a”能使你往左移&#xff0c;按“s”能使你往下移&#xff0c;按“d”能使你往右移&#xff0c;按“q”能使你上一层&#xff0c;按“e”能使你下一层。这就是这迷宫的规则&#xff0c;你听明白了吗?" << endl << endl;system("pause");system("cls");yword">while ('G' == strmaze[4][4][4]) {yword">int ix = (cp - &strmaze[0][0][0]) / 25;yword">int iy = (cp - &strmaze[0][0][0]) / 5 % 5;yword">int iz = (cp - &strmaze[0][0][0]) % 5;printmaze(strmaze);cin >> ch;rewind(stdin);*cp = ' ';yword">switch (ch) {yword">case 'w':iy && '*' != *(cp - 5) && (cp -= 5);yword">break;yword">case 'a':iz && '*' != *(cp - 1) && (cp--);yword">break;yword">case 's':4 != iy && '*' != *(cp + 5) && (cp += 5);yword">break;yword">case 'd':4 != iz && '*' != *(cp + 1) && (cp++);yword">break;yword">case 'q':ix && '*' != *(cp - 25) && (cp -= 25);yword">break;yword">case 'e':4 != ix && '*' != *(cp + 25) && (cp += 25);yword">break;yword">default:yword">break;}*cp = 'P';system("cls");}system("color 0A");cout << "恭喜你&#xff0c;你赢了" << endl;yword">return 0;
}

程序的流程图

xmlns="http://www.w3.org/2000/svg" height="446" viewbox="0.0000152587890625 0 379.71356201171875 446" class="mermaid-svg"> yle>#mermaid-svg-a1QWF6FGgoepqrt0 {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .error-icon{fill:#552222;}#mermaid-svg-a1QWF6FGgoepqrt0 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-a1QWF6FGgoepqrt0 .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-a1QWF6FGgoepqrt0 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-a1QWF6FGgoepqrt0 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-a1QWF6FGgoepqrt0 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-a1QWF6FGgoepqrt0 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-a1QWF6FGgoepqrt0 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-a1QWF6FGgoepqrt0 .marker.cross{stroke:#333333;}#mermaid-svg-a1QWF6FGgoepqrt0 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-a1QWF6FGgoepqrt0 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .cluster-label text{fill:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .cluster-label span{color:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .label text,#mermaid-svg-a1QWF6FGgoepqrt0 span{fill:#333;color:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .node rect,#mermaid-svg-a1QWF6FGgoepqrt0 .node circle,#mermaid-svg-a1QWF6FGgoepqrt0 .node ellipse,#mermaid-svg-a1QWF6FGgoepqrt0 .node polygon,#mermaid-svg-a1QWF6FGgoepqrt0 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-a1QWF6FGgoepqrt0 .node .label{text-align:center;}#mermaid-svg-a1QWF6FGgoepqrt0 .node.clickable{cursor:pointer;}#mermaid-svg-a1QWF6FGgoepqrt0 .arrowheadPath{fill:#333333;}#mermaid-svg-a1QWF6FGgoepqrt0 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-a1QWF6FGgoepqrt0 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-a1QWF6FGgoepqrt0 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-a1QWF6FGgoepqrt0 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-a1QWF6FGgoepqrt0 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-a1QWF6FGgoepqrt0 .cluster text{fill:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 .cluster span{color:#333;}#mermaid-svg-a1QWF6FGgoepqrt0 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-a1QWF6FGgoepqrt0 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}yle> yle="opacity: 1;"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-导入io流-释放std命名空间的所有东西"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-释放std命名空间的所有东西-b"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-b-c"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;"> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;"> x="23" ry="23" x="-31.75" y="-23" width="63.5" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">开始
yle="opacity: 1;" id="flowchart-导入io流-259" transform="translate(189.85678100585938,127)"> x="0" ry="0" x="-40.578125" y="-23" width="81.15625" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">导入io流
yle="opacity: 1;" id="flowchart-释放std命名空间的所有东西-260" transform="translate(189.85678100585938,223)"> x="0" ry="0" x="-108.8671875" y="-23" width="217.734375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">释放std命名空间的所有东西
yle="opacity: 1;" id="flowchart-b-261" transform="translate(189.85678100585938,319)"> ygon points="-15.333333333333334,0 149.13020833333334,0 172.13020833333334,-46 7.666666666666667,-46" transform="translate(-78.3984375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义printmaze函数
yle="opacity: 1;" id="flowchart-c-262" transform="translate(189.85678100585938,415)"> ygon points="-15.333333333333334,0 325.3802083333333,0 348.3802083333333,-46 7.666666666666667,-46" transform="translate(-166.5234375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">把三维字符数组strmaze初始化为下面的图片

yk5c2X1" width="3324.8623046875" xmlns="http://www.w3.org/2000/svg" height="3126.776611328125" viewbox="0 0 3324.8623046875 3126.776611328125" class="mermaid-svg"> yle>#mermaid-svg-DlAW3Lbbryk5c2X1 {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .error-icon{fill:#552222;}#mermaid-svg-DlAW3Lbbryk5c2X1 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-DlAW3Lbbryk5c2X1 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .marker.cross{stroke:#333333;}#mermaid-svg-DlAW3Lbbryk5c2X1 svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .cluster-label text{fill:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .cluster-label span{color:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .label text,#mermaid-svg-DlAW3Lbbryk5c2X1 span{fill:#333;color:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .node rect,#mermaid-svg-DlAW3Lbbryk5c2X1 .node circle,#mermaid-svg-DlAW3Lbbryk5c2X1 .node ellipse,#mermaid-svg-DlAW3Lbbryk5c2X1 .node polygon,#mermaid-svg-DlAW3Lbbryk5c2X1 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .node .label{text-align:center;}#mermaid-svg-DlAW3Lbbryk5c2X1 .node.clickable{cursor:pointer;}#mermaid-svg-DlAW3Lbbryk5c2X1 .arrowheadPath{fill:#333333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-DlAW3Lbbryk5c2X1 .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-DlAW3Lbbryk5c2X1 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-DlAW3Lbbryk5c2X1 .cluster text{fill:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 .cluster span{color:#333;}#mermaid-svg-DlAW3Lbbryk5c2X1 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-DlAW3Lbbryk5c2X1 :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}yle> yle="opacity: 1;"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-b-c"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-c-d"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-d-e"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-e-f"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-f-g"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-g-h"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-h-i"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-i-ab"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-ab-清空缓冲区"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-清空缓冲区-把解引用的cp设为空格"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把解引用的cp设为空格-j"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-j-k"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-k-把cp向左移动5位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向左移动5位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-ttt-e"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-e-l"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-l-m"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> z" style="opacity: 1;" id="L-m-z"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-j-n"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-n-o"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-o-把cp向左移动一位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向左移动一位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-n-p"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-p-t"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-t-把cp向右移动5位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向右移动5位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-p-u"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-u-v"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-v-把cp向右移动一位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向右移动一位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-u-w"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x" style="opacity: 1;" id="L-w-x"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x LE-把cp向左移动25位" style="opacity: 1;" id="L-x-把cp向左移动25位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向左移动25位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> y" style="opacity: 1;" id="L-w-y"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> y LE-aa" style="opacity: 1;" id="L-y-aa"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-aa-把cp向右移动25位"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-把cp向右移动25位-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-k-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-o-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-t-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-v-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x LE-ttt" style="opacity: 1;" id="L-x-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;" id="L-aa-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> y LE-ttt" style="opacity: 1;" id="L-y-ttt"> yle="fill:none"> x="0 0 10 10" refx="9" refy="5" markerunits="strokeWidth" markerwidth="8" markerheight="6" orient="auto"> z" class="arrowheadPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> yle="opacity: 1;"> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(2050.201030731201,354)"> x="0" ry="0" width="288" height="26">
yle="display: inline-block; white-space: nowrap;"> 等待用户按下任意一个键&#xff0c;按下后就清屏
yle="opacity: 1;" transform="translate(937.2296867370605,638.5328063964844)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(148.44921875,1982.8898391723633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(78.6171875,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(78.6171875,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(2231.201030731201,1407.9257736206055)"> x="0" ry="0" width="32" height="26">
yle="display: inline-block; white-space: nowrap;"> 清屏
yle="opacity: 1;" transform="translate(2050.201030731201,638.5328063964844)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform=""> x="0" ry="0" width="0" height="0">
yle="display: inline-block; white-space: nowrap;"> z" class="edgeLabel L-LS-m' L-LE-z">
yle="opacity: 1;" transform="translate(1078.7960929870605,1505.3187408447266)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(433.484375,2078.9328079223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(361.75,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(361.75,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(1220.3624992370605,1696.9546813964844)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(714.71484375,2174.9757766723633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(644.8828125,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(644.8828125,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(1361.9289054870605,1886.8468704223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(999.75,2271.0187454223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(928.015625,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(928.015625,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(1505.5929679870605,2078.9328079223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(1287.2734375,2366.977340698242)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;"> x" class="edgeLabel L-LS-w' L-LE-x">是
yle="opacity: 1;" transform="translate(1215.34375,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;"> x-把cp向左移动25位" class="edgeLabel L-LS-x' L-LE-把cp向左移动25位">是
yle="opacity: 1;" transform="translate(1215.34375,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(1649.4523429870605,2271.0187454223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;"> y" class="edgeLabel L-LS-w' L-LE-y">否
yle="opacity: 1;" transform="translate(1574.9921875,2462.935935974121)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;"> y-aa" class="edgeLabel L-LS-y' L-LE-aa">是
yle="opacity: 1;" transform="translate(1503.0625,2766.7765579223633)"> x="0" ry="0" width="16" height="26">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" transform="translate(1503.0625,2888.7765579223633)"> x="0" ry="0" width="40.34375" height="26">
yle="display: inline-block; white-space: nowrap;"> break
yle="opacity: 1;" transform="translate(218.28125,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> 否(break)
yle="opacity: 1;" transform="translate(505.21875,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> 否(break)
yle="opacity: 1;" transform="translate(784.546875,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> 否(break)
yle="opacity: 1;" transform="translate(1071.484375,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> 否(break)
yle="opacity: 1;" transform="translate(1359.203125,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> x-ttt" class="edgeLabel L-LS-x' L-LE-ttt">否(break)
yle="opacity: 1;" transform="translate(1646.921875,2827.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> 否(break)
yle="opacity: 1;" transform="translate(1748.4054679870605,2766.7765579223633)"> x="0" ry="0" width="68.09375" height="26">
yle="display: inline-block; white-space: nowrap;"> y-ttt" class="edgeLabel L-LS-y' L-LE-ttt">否(break)
yle="opacity: 1;"> x="0" ry="0" x="-10" y="-10" width="20" height="20" class="label-container" style="stroke:#fff;fill:#fff;">
yle="display: inline-block; white-space: nowrap;">
yle="opacity: 1;" id="flowchart-b-318" transform="translate(2050.201030731201,101)"> ygon points="-15.333333333333334,0 463.3958333333333,0 486.3958333333333,-46 7.666666666666667,-46" transform="translate(-235.53125,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义字符指针cp为三维字符数组strmaze第0层第0行第0列的地址
yle="opacity: 1;" id="flowchart-c-319" transform="translate(2050.201030731201,197)"> ygon points="-15.333333333333334,0 117.39583333333333,0 140.39583333333334,-46 7.666666666666667,-46" transform="translate(-62.53125,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义字符ch为0
yle="opacity: 1;" id="flowchart-d-320" transform="translate(2050.201030731201,293)"> ygon points="-15.333333333333334,0 2494.9895833333335,0 2517.9895833333335,-46 7.666666666666667,-46" transform="translate(-1251.328125,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">输出“欢迎你来玩这个3D迷宫&#xff0c;在这个迷宫中&#xff0c;“P”是你&#xff0c;“*”是墙&#xff0c;空格是你可以走的地方&#xff0c;而\​033[32;1m“G”\​033[0m是\​033[32;1m终点\​033[0m&#xff0c;走到这就能让你胜利了&#xff0c;并且&#xff0c;按“w”能使你往上移&#xff0c;按“a”能使你往左移&#xff0c;按“s”能使你往下移&#xff0c;按“d”能使你往右移&#xff0c;按“q”能使你上一层&#xff0c;按“e”能使你下一层。这就是这迷宫的规则&#xff0c;你听明白了吗?\​n\​n”
yle="opacity: 1;" id="flowchart-e-321" transform="translate(2050.201030731201,496.2664031982422)"> ygon points="104.26640625,0 208.5328125,-104.26640625 104.26640625,-208.5328125 0,-104.26640625" transform="translate(-104.26640625,104.26640625)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'G' == strmaze[4][4][4]?
yle="opacity: 1;" id="flowchart-f-322" transform="translate(937.2296867370605,699.5328063964844)"> ygon points="-15.333333333333334,0 668.7552083333334,0 691.7552083333334,-46 7.666666666666667,-46" transform="translate(-338.2109375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义整型ix为cp与三维字符数组strmaze第0层第0行第0列的地址之间的元素个数除以25的结果
yle="opacity: 1;" id="flowchart-g-323" transform="translate(937.2296867370605,795.5328063964844)"> ygon points="-15.333333333333334,0 684.6302083333334,0 707.6302083333334,-46 7.666666666666667,-46" transform="translate(-346.1484375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义整型iy为cp与三维字符数组strmaze第0层第0行第0列的地址之间的元素个数除以5模5的结果
yle="opacity: 1;" id="flowchart-h-324" transform="translate(937.2296867370605,891.5328063964844)"> ygon points="-15.333333333333334,0 644.2395833333334,0 667.2395833333334,-46 7.666666666666667,-46" transform="translate(-325.953125,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">定义整型iy为cp与三维字符数组strmaze第0层第0行第0列的地址之间的元素个数模5的结果
yle="opacity: 1;" id="flowchart-i-325" transform="translate(937.2296867370605,987.5328063964844)"> x="0" ry="0" x="-182.546875" y="-23" width="365.09375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">执行pritmaze函数&#xff0c;参数有三维字符数组strmaze
yle="opacity: 1;" id="flowchart-ab-326" transform="translate(937.2296867370605,1083.5328063964844)"> ygon points="-15.333333333333334,0 173.00520833333334,0 196.00520833333334,-46 7.666666666666667,-46" transform="translate(-90.3359375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">把ch设为你输入的字符
yle="opacity: 1;" id="flowchart-清空缓冲区-327" transform="translate(937.2296867370605,1179.5328063964844)"> x="0" ry="0" x="-50" y="-23" width="100" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">清空缓冲区
yle="opacity: 1;" id="flowchart-把解引用的cp设为空格-328" transform="translate(937.2296867370605,1275.5328063964844)"> x="0" ry="0" x="-90.421875" y="-23" width="180.84375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把解引用的cp设为空格
yle="opacity: 1;" id="flowchart-j-329" transform="translate(937.2296867370605,1407.9257736206055)"> ygon points="59.39296875,0 118.7859375,-59.39296875 59.39296875,-118.7859375 0,-59.39296875" transform="translate(-59.39296875,59.39296875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'w' == ch?
yle="opacity: 1;" id="flowchart-k-330" transform="translate(148.44921875,2614.856246948242)"> ygon points="94.42265625,0 188.8453125,-94.42265625 94.42265625,-188.8453125 0,-94.42265625" transform="translate(-94.42265625,94.42265625)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">iy && '*' != *(cp - 5)?
yle="opacity: 1;" id="flowchart-把cp向左移动5位-331" transform="translate(78.6171875,2827.7765579223633)"> x="0" ry="0" x="-70.6171875" y="-23" width="141.234375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向左移动5位
yle="opacity: 1;" id="flowchart-ttt-332" transform="translate(999.75,2949.7765579223633)"> x="0" ry="0" x="-103.2734375" y="-23" width="206.546875" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把解引用的cp设为字符“P”
yle="opacity: 1;" id="flowchart-l-334" transform="translate(2050.201030731201,699.5328063964844)"> x="0" ry="0" x="-146" y="-23" width="292" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把背景色设为黑色&#xff0c;前景色设为淡绿色
yle="opacity: 1;" id="flowchart-m-335" transform="translate(2050.201030731201,795.5328063964844)"> ygon points="-15.333333333333334,0 187.55208333333334,0 210.55208333333334,-46 7.666666666666667,-46" transform="translate(-97.609375,23)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">输出“恭喜你&#xff0c;你赢了\​n”
yle="opacity: 1;" id="flowchart-z-336" transform="translate(2050.201030731201,3095.7765579223633)"> x="23" ry="23" x="-31.75" y="-23" width="63.5" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">结束
yle="opacity: 1;" id="flowchart-n-338" transform="translate(1078.7960929870605,1601.1367111206055)"> ygon points="57.81796875,0 115.6359375,-57.81796875 57.81796875,-115.6359375 0,-57.81796875" transform="translate(-57.81796875,57.81796875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'a' == ch?
yle="opacity: 1;" id="flowchart-o-339" transform="translate(433.484375,2614.856246948242)"> ygon points="94.2890625,0 188.578125,-94.2890625 94.2890625,-188.578125 0,-94.2890625" transform="translate(-94.2890625,94.2890625)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">iz && '*' != *(cp - 1)?
yle="opacity: 1;" id="flowchart-把cp向左移动一位-340" transform="translate(361.75,2827.7765579223633)"> x="0" ry="0" x="-74.421875" y="-23" width="148.84375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向左移动一位
yle="opacity: 1;" id="flowchart-p-343" transform="translate(1220.3624992370605,1791.9007759094238)"> ygon points="56.94609375,0 113.8921875,-56.94609375 56.94609375,-113.8921875 0,-56.94609375" transform="translate(-56.94609375,56.94609375)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'s' == ch?
yle="opacity: 1;" id="flowchart-t-344" transform="translate(714.71484375,2614.856246948242)"> ygon points="110.08828125000001,0 220.17656250000002,-110.08828125000001 110.08828125000001,-220.17656250000002 0,-110.08828125000001" transform="translate(-110.08828125000001,110.08828125000001)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">4 != iy && '*' != *(cp + 5)?
yle="opacity: 1;" id="flowchart-把cp向右移动5位-345" transform="translate(644.8828125,2827.7765579223633)"> x="0" ry="0" x="-70.6171875" y="-23" width="141.234375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向右移动5位
yle="opacity: 1;" id="flowchart-u-348" transform="translate(1361.9289054870605,1982.8898391723633)"> ygon points="58.04296875,0 116.0859375,-58.04296875 58.04296875,-116.0859375 0,-58.04296875" transform="translate(-58.04296875,58.04296875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'d' == ch?
yle="opacity: 1;" id="flowchart-v-349" transform="translate(999.75,2614.856246948242)"> ygon points="109.9546875,0 219.909375,-109.9546875 109.9546875,-219.909375 0,-109.9546875" transform="translate(-109.9546875,109.9546875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">4 != iz && '*' != *(cp + 1)?
yle="opacity: 1;" id="flowchart-把cp向右移动一位-350" transform="translate(928.015625,2827.7765579223633)"> x="0" ry="0" x="-74.421875" y="-23" width="148.84375" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向右移动一位
yle="opacity: 1;" id="flowchart-w-353" transform="translate(1505.5929679870605,2174.9757766723633)"> ygon points="58.04296875,0 116.0859375,-58.04296875 58.04296875,-116.0859375 0,-58.04296875" transform="translate(-58.04296875,58.04296875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'q' == ch?
yle="opacity: 1;" id="flowchart-x-354" transform="translate(1287.2734375,2614.856246948242)"> ygon points="98.2546875,0 196.509375,-98.2546875 98.2546875,-196.509375 0,-98.2546875" transform="translate(-98.2546875,98.2546875)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">ix && '*' != *(cp - 25)?
yle="opacity: 1;" id="flowchart-把cp向左移动25位-355" transform="translate(1215.34375,2827.7765579223633)"> x="0" ry="0" x="-74.8125" y="-23" width="149.625" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向左移动25位
yle="opacity: 1;" id="flowchart-y-358" transform="translate(1649.4523429870605,2366.977340698242)"> ygon points="57.95859375,0 115.9171875,-57.95859375 57.95859375,-115.9171875 0,-57.95859375" transform="translate(-57.95859375,57.95859375)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">'e' == ch?
yle="opacity: 1;" id="flowchart-aa-359" transform="translate(1574.9921875,2614.856246948242)"> ygon points="113.92031250000001,0 227.84062500000002,-113.92031250000001 113.92031250000001,-227.84062500000002 0,-113.92031250000001" transform="translate(-113.92031250000001,113.92031250000001)" class="label-container">ygon>
yle="display: inline-block; white-space: nowrap;">4 != ix && '*' != *(cp + 25)?
yle="opacity: 1;" id="flowchart-把cp向右移动25位-360" transform="translate(1503.0625,2827.7765579223633)"> x="0" ry="0" x="-74.8125" y="-23" width="149.625" height="46" class="label-container">
yle="display: inline-block; white-space: nowrap;">把cp向右移动25位
xmlns="http://www.w3.org/2000/svg" height="1499.90625" viewbox="0 0 2153.52587890625 1499.90625" class="mermaid-svg"> yle>#mermaid-svg-0BUX9NloKnLugRdo {font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}#mermaid-svg-0BUX9NloKnLugRdo .error-icon{fill:#552222;}#mermaid-svg-0BUX9NloKnLugRdo .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-0BUX9NloKnLugRdo .edge-thickness-normal{stroke-width:2px;}#mermaid-svg-0BUX9NloKnLugRdo .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-0BUX9NloKnLugRdo .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-0BUX9NloKnLugRdo .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-0BUX9NloKnLugRdo .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-0BUX9NloKnLugRdo .marker{fill:#333333;stroke:#333333;}#mermaid-svg-0BUX9NloKnLugRdo .marker.cross{stroke:#333333;}#mermaid-svg-0BUX9NloKnLugRdo svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-0BUX9NloKnLugRdo .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-0BUX9NloKnLugRdo .cluster-label text{fill:#333;}#mermaid-svg-0BUX9NloKnLugRdo .cluster-label span{color:#333;}#mermaid-svg-0BUX9NloKnLugRdo .label text,#mermaid-svg-0BUX9NloKnLugRdo span{fill:#333;color:#333;}#mermaid-svg-0BUX9NloKnLugRdo .node rect,#mermaid-svg-0BUX9NloKnLugRdo .node circle,#mermaid-svg-0BUX9NloKnLugRdo .node ellipse,#mermaid-svg-0BUX9NloKnLugRdo .node polygon,#mermaid-svg-0BUX9NloKnLugRdo .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-0BUX9NloKnLugRdo .node .label{text-align:center;}#mermaid-svg-0BUX9NloKnLugRdo .node.clickable{cursor:pointer;}#mermaid-svg-0BUX9NloKnLugRdo .arrowheadPath{fill:#333333;}#mermaid-svg-0BUX9NloKnLugRdo .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-0BUX9NloKnLugRdo .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-0BUX9NloKnLugRdo .edgeLabel{background-color:#e8e8e8;text-align:center;}#mermaid-svg-0BUX9NloKnLugRdo .edgeLabel rect{opacity:0.5;background-color:#e8e8e8;fill:#e8e8e8;}#mermaid-svg-0BUX9NloKnLugRdo .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-0BUX9NloKnLugRdo .cluster text{fill:#333;}#mermaid-svg-0BUX9NloKnLugRdo .cluster span{color:#333;}#mermaid-svg-0BUX9NloKnLugRdo div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-0BUX9NloKnLugRdo :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;}yle> x="0 0 10 10" refx="9" refy="5" markerunits="userSpaceOnUse" markerwidth="12" markerheight="12" orient="auto"> z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x="0 0 10 10" refx="0" refy="5" markerunits="userSpaceOnUse" markerwidth="12" markerheight="12" orient="auto"> z" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x="0 0 10 10" refx="11" refy="5" markerunits="userSpaceOnUse" markerwidth="11" markerheight="11" orient="auto"> x="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x="0 0 10 10" refx="-1" refy="5" markerunits="userSpaceOnUse" markerwidth="11" markerheight="11" orient="auto"> x="5" cy="5" r="5" class="arrowMarkerPath" style="stroke-width: 1; stroke-dasharray: 1, 0;"> x="0 0 11 11" refx="12" refy="5.2" markerunits="userSpaceOnUse" markerwidth="11" markerheight="11" orient="auto"> yle="stroke-width: 2; stroke-dasharray: 1, 0;"> x="0 0 11 11" refx="-1" refy="5.2" markerunits="userSpaceOnUse" markerwidth="11" markerheight="11" orient="auto"> yle="stroke-width: 2; stroke-dasharray: 1, 0;"> ze函数"> yle="" rx="0" ry="0" x="8" y="8" width="2137.52596282959" height="1483.90625">
yle="display: inline-block; white-space: nowrap;"> printmaze函数
yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> yle="fill:none;" marker-end="url(#flowchart-pointEnd)"> z-0" class=" edge-thickness-normal edge-pattern-solid flowchart-link LS-f LE-z" style="fill:none;" marker-end="url(#flowchart-pointEnd)">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
yle="display: inline-block; white-space: nowrap;">
z-410" transform="translate(2081.90096282959, 1446.40625)"> yle="" rx="20.5" ry="20.5" x="-28.625" y="-20.5" width="57.25" height="41"> yle="" transform="translate(-16, -13)">
yle="display: inline-block; white-space: nowrap;"> 结束
yle="" rx="20.5" ry="20.5" x="-28.625" y="-20.5" width="57.25" height="41"> yle="" transform="translate(-16, -13)">
yle="display: inline-block; white-space: nowrap;"> 开始
ygon points="-13.666666666666666,0 113.08854166666667,0 133.58854166666666,-41 6.833333333333333,-41" class="label-container" transform="translate(-59.9609375,20.5)" style="">ygon> yle="" transform="translate(-52.4609375, -13)">
yle="display: inline-block; white-space: nowrap;"> 输出“-----@\​n”
ygon points="-13.666666666666666,0 101.11979166666667,0 121.61979166666667,-41 6.833333333333333,-41" class="label-container" transform="translate(-53.9765625,20.5)" style="">ygon> yle="" transform="translate(-46.4765625, -13)">
yle="display: inline-block; white-space: nowrap;"> 定义整型i为0
ygon points="-13.666666666666666,0 109.52604166666667,0 130.02604166666666,-41 6.833333333333333,-41" class="label-container" transform="translate(-58.1796875,20.5)" style="">ygon> yle="" transform="translate(-50.6796875, -13)">
yle="display: inline-block; white-space: nowrap;"> 定义整型ia为0
ygon points="-13.666666666666666,0 110.04166666666667,0 130.54166666666666,-41 6.833333333333333,-41" class="label-container" transform="translate(-58.4375,20.5)" style="">ygon> yle="" transform="translate(-50.9375, -13)">
yle="display: inline-block; white-space: nowrap;"> 定义整型ib为0
ygon points="46.4296875,0 92.859375,-46.4296875 46.4296875,-92.859375 0,-46.4296875" class="label-container" transform="translate(-46.4296875,46.4296875)" style="">ygon> yle="" transform="translate(-18.4296875, -13)">
yle="display: inline-block; white-space: nowrap;"> i < 5?
yle="" rx="0" ry="0" x="-34.1796875" y="-20.5" width="68.359375" height="41"> yle="" transform="translate(-26.6796875, -13)">
yle="display: inline-block; white-space: nowrap;"> 设ia为0
ygon points="50.6328125,0 101.265625,-50.6328125 50.6328125,-101.265625 0,-50.6328125" class="label-container" transform="translate(-50.6328125,50.6328125)" style="">ygon> yle="" transform="translate(-22.6328125, -13)">
yle="display: inline-block; white-space: nowrap;"> ia < 5?
yle="" rx="0" ry="0" x="-34.4375" y="-20.5" width="68.875" height="41"> yle="" transform="translate(-26.9375, -13)">
yle="display: inline-block; white-space: nowrap;"> 设ib为0
ygon points="50.890625,0 101.78125,-50.890625 50.890625,-101.78125 0,-50.890625" class="label-container" transform="translate(-50.890625,50.890625)" style="">ygon> yle="" transform="translate(-22.890625, -13)">
yle="display: inline-block; white-space: nowrap;"> ib < 5?
ygon points="-13.666666666666666,0 1663.3385416666667,0 1683.8385416666667,-41 6.833333333333333,-41" class="label-container" transform="translate(-835.0859375,20.5)" style="">ygon> yle="" transform="translate(-827.5859375, -13)">
yle="display: inline-block; white-space: nowrap;"> 如果字符“G”为三维字符数组strmaze第i层第ia行第ib列的元素&#xff0c;那么就输出“\​033[32;1m”&#xff0c;三维字符数组strmaze第i层第ia行第ib列的元素和“\​033[0m”&#xff0c;否则输出“\​033[0m”&#xff0c;三维字符数组strmaze第i层第ia行第ib列的元素和“\​033[0m”
yle="" rx="0" ry="0" x="-34.4375" y="-20.5" width="68.875" height="41"> yle="" transform="translate(-26.9375, -13)">
yle="display: inline-block; white-space: nowrap;"> ib自增1
ygon points="-13.666666666666666,0 79.77604166666667,0 100.27604166666667,-41 6.833333333333333,-41" class="label-container" transform="translate(-43.3046875,20.5)" style="">ygon> yle="" transform="translate(-35.8046875, -13)">
yle="display: inline-block; white-space: nowrap;"> 输出“|\​n”
yle="" rx="0" ry="0" x="-34.1796875" y="-20.5" width="68.359375" height="41"> yle="" transform="translate(-26.6796875, -13)">
yle="display: inline-block; white-space: nowrap;"> ia自增1
ygon points="-13.666666666666666,0 113.08854166666667,0 133.58854166666666,-41 6.833333333333333,-41" class="label-container" transform="translate(-59.9609375,20.5)" style="">ygon> yle="" transform="translate(-52.4609375, -13)">
yle="display: inline-block; white-space: nowrap;"> 输出“-----@\​n”
yle="" rx="0" ry="0" x="-29.9765625" y="-20.5" width="59.953125" height="41"> yle="" transform="translate(-22.4765625, -13)">
yle="display: inline-block; white-space: nowrap;"> i自增1

程序游玩的效果

x">

3D迷宫

下一篇博客要说的东西

C++掉血迷宫


http://www.ppmy.cn/server/118328.html

相关文章

安全基础设施如何形成统一生态标准?OASA 硬件安全合作计划启动 | 2024 龙蜥大会

近日&#xff0c;2024 龙蜥操作系统大会&#xff08;OpenAnolis Conference&#xff09;在北京盛大召开。 与此同时&#xff0c;由龙蜥社区运营委员会副主席、龙腾计划生态负责人金美琴&#xff0c;阿里云智能集团高级技术专家张天佳&#xff0c;海光信息技术生态技术总监李伟&…

git命令行基础常用指令

git命令行基础常用指令 git status git status //用来查询当前仓库的状态&#xff0c;包括位于哪个分支、工作区有哪些文件被修改以及哪些文件被添加、暂存区有哪些文件暂存。git diff 用来查看当前工作区的文件的修改内容 git diff //修改内容不会全部显示&#xff0c;…

使用 PyTorch 从头开始​​构建您自己的 Llama 3 架构

https://www.aisolink.com/build-your-own-llama-3-architecture-from-scratch-using-pytorch 全文摘要 本文提供了一个详细的指南,介绍如何使用PyTorch从头开始构建Llama 3模型的完整架构,并对自定义数据集进行训练和推理。文章涵盖了构建输入块、解码器块和输出块的步骤,…

使用 Spring Boot + Vue + ElementUI 构建简易评分系统

在这篇博客中&#xff0c;我将带领大家一步一步地构建一个简易评分系统。这个项目会使用 Spring Boot 作为后端&#xff0c;Vue 作为前端框架&#xff0c;并结合 ElementUI 提供用户界面的组件。我们将详细介绍项目的设计思路和实现过程&#xff0c;并在此过程中学习如何将这些…

ShardingSphere事务

ShardingSphere 提供了两种主要的事务管理方式&#xff1a; 本地事务&#xff08;Local Transaction&#xff09; 每个数据库资源使用自己的本地事务。适用于不涉及跨库事务的简单场景。在 Sharding JDBC 中&#xff0c;默认使用本地事务管理模式。当你的事务操作都在一个单独的…

【Linux修行路】信号的产生

目录 ⛳️推荐 一、信号的产生 二、产生信号的系统调用 2.1 kill——给指定的进程发送指定的信号 2.2 模拟实现指令 kill 2.3 raise——给调用的进程发送指定的信号 2.4 abort——给调用者发送 6 号信号 三、验证哪些信号不可以被捕捉 四、为什么除0和解引用空指针会给…

人工智能物联网的去中心化和分布式学习:全面综述、新兴挑战和机遇

这篇论文的标题是《Decentralized and Distributed Learning for AIoT: A Comprehensive Review, Emerging Challenges, and Opportunities》&#xff0c;作者是Hanyue Xu, Kah Phooi Seng, Li Minn Ang, 和 Jeremy Smith。论文发表在IEEE Access期刊上&#xff0c;接收日期为2…

高级c语言(六)

输出缓冲区&#xff1a; 当我们使用标准库的输出系列函数打印数据到屏幕&#xff0c;数据并不会立即显示到屏幕上&#xff0c;而先存储到一块内存中&#xff0c;我们把这块内存称为输出缓冲区&#xff0c;等满足相关条件后&#xff0c;再从缓冲区中显示到屏幕&#xff0c;相关…