File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ void initNodes(vector<Node>& nodes, T arr) {
57
57
}
58
58
59
59
int main () {
60
+ #ifdef _WIN32
60
61
system (" title A* pathfinding" );
62
+ #else
63
+ printf (" \033 ]0;A* pathfinding\a " );
64
+ #endif
61
65
62
66
Pathfinder pathfinder;
63
67
vector<Node> nodes;
@@ -91,7 +95,11 @@ int main() {
91
95
};
92
96
93
97
initNodes (nodes, grid);
98
+ #ifdef _WIN32
94
99
system (" pause" );
100
+ #else
101
+ system (" read -p 'Press Enter to continue...'" );
102
+ #endif
95
103
96
104
// size of board 25 x 25 ( 0 - 24, 0 - 24)
97
105
@@ -104,7 +112,11 @@ int main() {
104
112
105
113
printNodes (nodes, start_node, end_node);
106
114
115
+ #ifdef _WIN32
107
116
system (" pause" );
117
+ #else
118
+ system (" read -p 'Press Enter to continue...'" );
119
+ #endif
108
120
return 0 ;
109
121
}
110
122
You can’t perform that action at this time.
0 commit comments