-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDEBUG.C
More file actions
61 lines (54 loc) · 1.34 KB
/
Copy pathDEBUG.C
File metadata and controls
61 lines (54 loc) · 1.34 KB
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
57
58
59
60
61
/**********************************************************
*Copyright(c) Automation Excellence Class
*FileName: Debug.c
*Author: JH Yang
*Date: 2017/08/06
*Description: 部分代码检测程序
*Others: 如不使用 注释#define Debug 即可
*Function List:
*History:
1.Date : 8/17
Author : JH Yang
Modification : 0x117模式下的PutPixel64K函数检测
2.Date : 8/17
Author : JH Yang
Modification : VGAHI模式下图形绘制函数示例
**********************************************************/
//#define Debug_VGA
#define Debug_SVGA
#include "Mouse.h"
#include "hz.h"
#include "Key.h"
//#include "Map.h"
#include "Traffic.h"
#ifdef Debug_SVGA
#include "SVGA.H"
#define Debug
#endif
#ifdef Debug_VGA
#include "VGA.H"
#define Debug
#endif
#ifdef Debug
int main() {
_Crossroad Intersection[Node_Num];
int i,j,k;
#if 1
//********************************************************* 交通初始化测试程序
TrafficInit(Intersection);
for (i = 0; i < Node_Num; i++)
{
printf("Intersection Num: %d;\n",i);
printf("Road Num: %d;\n",Intersection[i].num);
printf("Intersection Arc:%d;\n",Intersection[i].arc);
for (j = 0; j < Intersection[i].num; j++)
for (k = 0; k < RoadType_Num; k++)
{
printf("Road Num : %d; RoadType Num : %d\n",j,k);
Output_Car(&Intersection[i].Road[j][k]);
getch();
}
}
#endif
}
#endif