-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtraffic_front_end.txt
56 lines (47 loc) · 1.09 KB
/
traffic_front_end.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/******************************************************************************
Online C++ Compiler.
Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <iostream>
using namespace std;
char Map[35][35];
int i,j;
void InitMap()
{
for(i=0;i<35;i++)
for(j=0;j<35;j++)
Map[i][j]=' ';
for(j=0;j<15;j++)
{
Map[14][j]='*';
Map[14][j+18]='*';
Map[16][j]='*';
Map[16][j+18]='*';
Map[18][j]='*';
Map[18][j+18]='*';
}
for(i=0;i<15;i++)
{
Map[i][14]='*';
Map[i][18]='*';
Map[i][16]='*';
Map[i+18][16]='*';
Map[i+18][14]='*';
Map[i+18][18]='*';
}
for(i=0;i<35;i++)
{
for(j=0;j<35;j++)
{
cout << Map[i][j];
cout << ' ';
}
cout << '\n';
}
}
int main()
{
InitMap();
return 0;
}