diff --git a/beginner/.vscode/c_cpp_properties.json b/beginner/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..5457f70 --- /dev/null +++ b/beginner/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "windows-gcc-x64", + "includePath": [ + "${workspaceFolder}/**" + ], + "compilerPath": "E:/huang/Documents/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe", + "cStandard": "${default}", + "cppStandard": "${default}", + "intelliSenseMode": "windows-gcc-x64", + "compilerArgs": [ + "" + ] + } + ], + "version": 4 +} \ No newline at end of file diff --git a/beginner/.vscode/launch.json b/beginner/.vscode/launch.json new file mode 100644 index 0000000..ff4c6cc --- /dev/null +++ b/beginner/.vscode/launch.json @@ -0,0 +1,24 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C/C++ Runner: Debug Session", + "type": "cppdbg", + "request": "launch", + "args": [], + "stopAtEntry": false, + "externalConsole": true, + "cwd": "e:/黄妍/各科资料及作业/软件前沿技术/大作业/Kill_The_Bug/beginner", + "program": "${fileDirname}\\${fileBasenameNoExtension}.exe", + "MIMode": "gdb", + "miDebuggerPath": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ] + } + ] +} \ No newline at end of file diff --git a/beginner/.vscode/settings.json b/beginner/.vscode/settings.json new file mode 100644 index 0000000..5fbdf06 --- /dev/null +++ b/beginner/.vscode/settings.json @@ -0,0 +1,66 @@ +{ + "C_Cpp_Runner.cCompilerPath": "gcc", + "C_Cpp_Runner.cppCompilerPath": "g++", + "C_Cpp_Runner.debuggerPath": "gdb", + "C_Cpp_Runner.cStandard": "", + "C_Cpp_Runner.cppStandard": "", + "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Auxiliary/Build/vcvarsall.bat", + "C_Cpp_Runner.useMsvc": false, + "C_Cpp_Runner.warnings": [ + "-Wall", + "-Wextra", + "-Wpedantic", + "-Wshadow", + "-Wformat=2", + "-Wcast-align", + "-Wconversion", + "-Wsign-conversion", + "-Wnull-dereference" + ], + "C_Cpp_Runner.msvcWarnings": [ + "/W4", + "/permissive-", + "/w14242", + "/w14287", + "/w14296", + "/w14311", + "/w14826", + "/w44062", + "/w44242", + "/w14905", + "/w14906", + "/w14263", + "/w44265", + "/w14928" + ], + "C_Cpp_Runner.enableWarnings": true, + "C_Cpp_Runner.warningsAsError": false, + "C_Cpp_Runner.compilerArgs": [], + "C_Cpp_Runner.linkerArgs": [], + "C_Cpp_Runner.includePaths": [], + "C_Cpp_Runner.includeSearch": [ + "*", + "**/*" + ], + "C_Cpp_Runner.excludeSearch": [ + "**/build", + "**/build/**", + "**/.*", + "**/.*/**", + "**/.vscode", + "**/.vscode/**" + ], + "C_Cpp_Runner.useAddressSanitizer": false, + "C_Cpp_Runner.useUndefinedSanitizer": false, + "C_Cpp_Runner.useLeakSanitizer": false, + "C_Cpp_Runner.showCompilationTime": false, + "C_Cpp_Runner.useLinkTimeOptimization": false, + "C_Cpp_Runner.msvcSecureNoWarnings": false, + "files.associations": { + "Count.C": "cpp", + "FiveFingers.C": "cpp", + "HelloWorld.C": "cpp", + "HelloYou.C": "cpp", + "JustPrint.C": "cpp" + } +} \ No newline at end of file diff --git a/beginner/.vscode/tasks.json b/beginner/.vscode/tasks.json new file mode 100644 index 0000000..9ae5b14 --- /dev/null +++ b/beginner/.vscode/tasks.json @@ -0,0 +1,29 @@ +{ + "tasks": [ + { + "type": "cppbuild", + "label": "C/C++: gcc.exe 生成活动文件", + "command": "E:/huang/Documents/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0/mingw64/bin/gcc.exe", + "args": [ + "-fdiagnostics-color=always", + "-g", + "${file}", + "-o", + "${fileDirname}\\${fileBasenameNoExtension}.exe", + "" + ], + "options": { + "cwd": "E:/huang/Documents/x86_64-8.1.0-release-posix-sjlj-rt_v6-rev0/mingw64/bin" + }, + "problemMatcher": [ + "$gcc" + ], + "group": { + "kind": "build", + "isDefault": true + }, + "detail": "调试器生成的任务。" + } + ], + "version": "2.0.0" +} \ No newline at end of file diff --git a/beginner/HelloWorld.C b/beginner/HelloWorld.C index 4b0788b..35dd43b 100644 --- a/beginner/HelloWorld.C +++ b/beginner/HelloWorld.C @@ -2,6 +2,6 @@ int main(void) { - print("Hello World"); + printf("Hello World"); return 0; } diff --git a/beginner/HelloWorld.exe b/beginner/HelloWorld.exe new file mode 100644 index 0000000..9ad0ef4 Binary files /dev/null and b/beginner/HelloWorld.exe differ