初始化修改

This commit is contained in:
flykhan 2023-03-23 23:55:37 +08:00
parent 71ba7e3d87
commit a81fbba18d
6 changed files with 94 additions and 0 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@
*.out
*.app
**/*.exe
**/gmon.out

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
}

19
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,19 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C++ Launch (GDB)",
"type": "cppdbg",
"request": "launch",
"targetArchitecture": "x86",
"program": "${workspaceRoot}\\${fileBasename}.exe",
"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceRoot}",
"externalConsole": true,
"preLaunchTask": "g++"
}
]
}

7
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"files.associations": {
"*.js": "javascript",
"iostream": "cpp"
},
"C_Cpp.errorSquiggles": "disabled"
}

17
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
"version": "2.0.0",
"command": "g++",
"args": ["-g","-std=c++11","${file}","-o","${workspaceRoot}\\${fileBasename}.exe"],
"problemMatcher": {
"owner": "cpp",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"severity": 4,
"message": 5
}
}
}

9
Makefile Normal file
View File

@ -0,0 +1,9 @@
clearclass:
# rm -rf */*/*/*.class
# rm -rf */*/*.class
# rm -rf */*.class
# rm -rf *.class
rm -rf */*.exe
rm -rf */*.out