Compare commits

..

No commits in common. "74cfa83754e51beeb6e9dec3ef13bbe24ac452ff" and "ebd904388690faf05e4751e15d3500e46c3553de" have entirely different histories.

4 changed files with 72 additions and 189 deletions

40
.vscode/c_cpp_properties.json vendored Normal file
View File

@ -0,0 +1,40 @@
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1",
"D:/mingw64/x86_64-w64-mingw32/include"
],
"defines": [
"_DEBUG",
"UNICODE",
"__GNUC__=6",
"__cdecl=__attribute__((__cdecl__))"
],
"intelliSenseMode": "gcc-x64",
"browse": {
"path": [
"${workspaceRoot}",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include",
"D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1",
"D:/mingw64/x86_64-w64-mingw32/include"
]
},
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": "",
"compilerPath": "D:/mingw64/bin/gcc.exe",
"cStandard": "c11",
"cppStandard": "c++11"
}
],
"version": 4
}

69
.vscode/launch.json vendored
View File

@ -1,60 +1,19 @@
// https://github.com/Microsoft/vscode-cpptools/blob/master/launch.md
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"name": "(gdb) Launch", // "name": "C++ Launch (GDB)",
"type": "cppdbg", // cppdbgcpptoolscppdbg "type": "cppdbg",
"request": "launch", // launchattach "request": "launch",
"program": "C:\\Windows\\system32\\cmd.exe", // (debug) "targetArchitecture": "x86",
// "program": "${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe", // (debug) "program": "${workspaceRoot}\\${fileBasename}.exe",
// "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", // (Windows'\\') "miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe",
// "program": "${fileDirname}/${fileBasenameNoExtension}.exe", // (Linux'/') "args": [],
"args": ["/C","${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe","&","pause"], // "stopAtEntry": false,
// "args": [], // "cwd": "${workspaceRoot}",
"stopAtEntry": false, // truemain "externalConsole": true,
"cwd": "${workspaceFolder}", // ${fileDirname} "preLaunchTask": "g++"
"environment": [], //
"externalConsole": true, // true使cmdIDE1810falseVSC
// "externalConsole": false, // true使cmdIDE1810falseVSC
"internalConsoleOptions": "neverOpen", // neverOpengdb
"MIMode": "gdb", // gdblldblldb
"miDebuggerPath": "gdb.exe", // WindowsLinux
"setupCommands": [
{ // STLGoogle
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
} }
], ]
"preLaunchTask": "Compile" // tasks.jsonlabel }
},
{
"name": "(gdb) Debug", //
"type": "cppdbg", // cppdbgcpptoolscppdbg
"request": "launch", // launchattach
// "program": "C:\\Windows\\system32\\cmd.exe", // (debug)
"program": "${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe", // (debug)
// "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", // (Windows'\\')
// "program": "${fileDirname}/${fileBasenameNoExtension}.exe", // (Linux'/')
// "args": ["/C","${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe","&","pause"], //
"args": [], //
"stopAtEntry": false, // truemain
"cwd": "${workspaceFolder}", // ${fileDirname}
"environment": [], //
// "externalConsole": true, // true使cmdIDE1810falseVSC
"externalConsole": false, // true使cmdIDE1810falseVSC
"internalConsoleOptions": "neverOpen", // neverOpengdb
"MIMode": "gdb", // gdblldblldb
"miDebuggerPath": "gdb.exe", // WindowsLinux
"setupCommands": [
{ // STLGoogle
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "Compile" // tasks.jsonlabel
}
]
}

110
.vscode/settings.json vendored
View File

@ -1,109 +1,7 @@
{ {
"workbench.sideBar.location": "left",
"window.title": "${dirty}${activeEditorLong}${separator}${rootName}${separator}${appName}",
"editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?·~!¥…()—【】、;:‘’“”,。《》? ",
"files.defaultLanguage": "c++", // ctrl+N
"editor.formatOnType": false, // C/C++
"editor.suggest.snippetsPreventQuickSuggestions": true, // clangdsnippetsIntellisense
"editor.acceptSuggestionOnEnter": "off", // tabIntellisense
"editor.snippetSuggestions": "inline", // snippetsinline
"C_Cpp.clang_format_sortIncludes": true, // include
"C_Cpp.autocomplete": "default", // cpptoolsclangd
"C_Cpp.suggestSnippets": true, //
"editor.fontFamily": "JetBrains Mono",
"editor.fontSize": 17, //
"editor.fontLigatures": true, // https://typeof.net/Iosevka
"editor.minimap.enabled": false, // minimap西
"editor.dragAndDrop": false, //
"editor.cursorSmoothCaretAnimation": "on", //
"editor.smoothScrolling": false, //
"files.trimTrailingWhitespace": true, //
"files.insertFinalNewline": true, // Linux
"files.autoGuessEncoding": true, // 6
"workbench.settings.useSplitJSON": false, //
"window.zoomLevel": 0, //
"git.enabled": true, // git
"git.ignoreMissingGitWarning": true, //
"[c]": {
"files.encoding": "utf8" // gbkcpp
},
"[c++]": {
"files.encoding": "utf8" // gbkcpp
},
"files.associations": { "files.associations": {
"iostream": "cpp", "*.js": "javascript",
"algorithm": "cpp", "iostream": "cpp"
"*.tcc": "cpp",
"random": "cpp",
"fstream": "cpp",
"istream": "cpp",
"ostream": "cpp",
"regex": "cpp",
"utility": "cpp",
"array": "cpp",
"atomic": "cpp",
"bitset": "cpp",
"cctype": "cpp",
"cfenv": "cpp",
"charconv": "cpp",
"chrono": "cpp",
"cinttypes": "cpp",
"clocale": "cpp",
"cmath": "cpp",
"codecvt": "cpp",
"complex": "cpp",
"condition_variable": "cpp",
"csetjmp": "cpp",
"csignal": "cpp",
"cstdarg": "cpp",
"cstddef": "cpp",
"cstdint": "cpp",
"cstdio": "cpp",
"cstdlib": "cpp",
"cstring": "cpp",
"ctime": "cpp",
"cuchar": "cpp",
"cwchar": "cpp",
"cwctype": "cpp",
"deque": "cpp",
"forward_list": "cpp",
"list": "cpp",
"unordered_map": "cpp",
"unordered_set": "cpp",
"vector": "cpp",
"exception": "cpp",
"functional": "cpp",
"iterator": "cpp",
"map": "cpp",
"memory": "cpp",
"memory_resource": "cpp",
"numeric": "cpp",
"optional": "cpp",
"ratio": "cpp",
"set": "cpp",
"string": "cpp",
"string_view": "cpp",
"system_error": "cpp",
"tuple": "cpp",
"type_traits": "cpp",
"future": "cpp",
"initializer_list": "cpp",
"iomanip": "cpp",
"iosfwd": "cpp",
"limits": "cpp",
"mutex": "cpp",
"new": "cpp",
"scoped_allocator": "cpp",
"shared_mutex": "cpp",
"sstream": "cpp",
"stdexcept": "cpp",
"streambuf": "cpp",
"thread": "cpp",
"typeindex": "cpp",
"typeinfo": "cpp",
"valarray": "cpp",
"queue": "cpp"
}, },
"C_Cpp.errorSquiggles": "Enabled", "C_Cpp.errorSquiggles": "disabled"
} }

42
.vscode/tasks.json vendored
View File

@ -1,31 +1,17 @@
// https://code.visualstudio.com/docs/editor/tasks
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [{ "command": "g++",
"label": "Compile", // launch.jsonpreLaunchTask "args": ["-g","-std=c++11","${file}","-o","${workspaceRoot}\\${fileBasename}.exe"],
"command": "g++", // 使C++g++ "problemMatcher": {
"args": [ "owner": "cpp",
"${file}", "fileLocation": ["relative", "${workspaceRoot}"],
"-o", // a.exeLinuxa.out "pattern": {
// "${fileDirname}/${fileBasenameNoExtension}.exe", "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"${workspaceFolder}\\debug\\${fileBasenameNoExtension}.exe", // debug "file": 1,
"-g", // "line": 2,
"-Wall", // "column": 3,
"-static-libgcc", // libgcc "severity": 4,
"-fexec-charset=utf-8", // 使GBKWin "message": 5
// "-std=c11", // C++c++17 }
], // VSC西 }
"type": "process", // processvsccommandshellshellargsshell
"group": {
"kind": "build",
"isDefault": true // truectrl shift B
},
"presentation": {
"echo": true,
"reveal": "always", // alwayssilentneverVSC
"focus": false, // true使taskC/C++true
"panel": "shared" //
},
"problemMatcher":"$gcc" // Lint
}]
} }