File tree Expand file tree Collapse file tree 8 files changed +72
-556
lines changed Expand file tree Collapse file tree 8 files changed +72
-556
lines changed Original file line number Diff line number Diff line change
1
+ .vscode
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " C/C++: g++.exe build and debug active file" ,
6
+ "type" : " cppdbg" ,
7
+ "request" : " launch" ,
8
+ "program" : " ${fileDirname}\\ ${fileBasenameNoExtension}.exe" ,
9
+ "args" : [],
10
+ "stopAtEntry" : false ,
11
+ "cwd" : " ${fileDirname}" ,
12
+ "environment" : [],
13
+ "externalConsole" : false ,
14
+ "MIMode" : " gdb" ,
15
+ "miDebuggerPath" : " C:\\ my\\ software\\ mingw64\\ bin\\ gdb.exe" ,
16
+ "setupCommands" : [
17
+ {
18
+ "description" : " Enable pretty-printing for gdb" ,
19
+ "text" : " -enable-pretty-printing" ,
20
+ "ignoreFailures" : true
21
+ }
22
+ ],
23
+ "preLaunchTask" : " C/C++: g++.exe build active file"
24
+ }
25
+ ]
26
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "files.associations" : {
3
+ "*.cjson" : " jsonc" ,
4
+ "*.wxss" : " css" ,
5
+ "*.wxs" : " javascript" ,
6
+ "iostream" : " cpp" ,
7
+ "utility" : " cpp" ,
8
+ "iosfwd" : " cpp"
9
+ }
10
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "tasks" : [
3
+ {
4
+ "type" : " cppbuild" ,
5
+ "label" : " C/C++: g++.exe build active file" ,
6
+ "command" : " C:\\ my\\ software\\ mingw64\\ bin\\ g++.exe" ,
7
+ "args" : [
8
+ " -fdiagnostics-color=always" ,
9
+ " -g" ,
10
+ " ${file}" ,
11
+ " -o" ,
12
+ " ${fileDirname}\\ ${fileBasenameNoExtension}.exe"
13
+ ],
14
+ "options" : {
15
+ "cwd" : " ${fileDirname}"
16
+ },
17
+ "problemMatcher" : [
18
+ " $gcc"
19
+ ],
20
+ "group" : " build" ,
21
+ "detail" : " 调试器生成的任务。"
22
+ }
23
+ ],
24
+ "version" : " 2.0.0"
25
+ }
Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ int main()
241
241
int j = 0 ;
242
242
while (Q.size ())
243
243
{
244
- cout << " 第" << j + 1 << " 邻点: " << (Tree[Q.top ().first ].pos [0 ] - b) * 1.0 / (1000000 * a) << " " << (Tree[Q.top ().first ].pos [1 ] - b) * 1.0 / (1000000 * a) << " " << Q.top ().second << endl;
244
+ cout << " 第" << K - j << " 邻点: " << (Tree[Q.top ().first ].pos [0 ] - b) * 1.0 / (1000000 * a) << " " << (Tree[Q.top ().first ].pos [1 ] - b) * 1.0 / (1000000 * a) << " " << Q.top ().second << endl;
245
245
Q.pop ();
246
246
++j;
247
247
}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments