Skip to content

Commit 89dd0ba

Browse files
finish
1 parent f4baf70 commit 89dd0ba

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

algorithm.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ algorithm::nodeMap algorithm::astar(int x1, int y1, int x2, int y2, algorithm::n
6363
std::priority_queue<Node> q;
6464
Node n(x1, y1);
6565
n.h = (dis.*algo)(x1, y1, x2, y2);
66+
n.val = "S";
6667
q.push(n);
6768
p[x1][y1] = n;
6869

graph_algorithm.pro

+2-4
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ DEFINES += QT_DEPRECATED_WARNINGS
2626
SOURCES += \
2727
main.cpp \
2828
mainwindow.cpp \
29-
algorithm.cpp \
30-
maze.cpp
29+
algorithm.cpp
3130

3231
HEADERS += \
3332
mainwindow.h \
34-
algorithm.h \
35-
maze.h
33+
algorithm.h
3634

3735
FORMS += \
3836
mainwindow.ui

0 commit comments

Comments
 (0)